Skip to content

Commit

Permalink
#119 add example template for storageclass
Browse files Browse the repository at this point in the history
Signed-off-by: Nigel Jones <nigel.l.jones+git@gmail.com>
  • Loading branch information
planetf1 committed Mar 23, 2023
1 parent e9b5b52 commit c859513
Show file tree
Hide file tree
Showing 13 changed files with 65 additions and 42 deletions.
2 changes: 1 addition & 1 deletion charts/egeria-base/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name: egeria-base
description: A Helm chart for Egeria simple platform deployment
apiVersion: v2
version: 4.0-prerelease.2
version: 4.0-prerelease.3
appVersion: "4.0"
icon: https://raw.githubusercontent.com/odpi/egeria/99016e77167fa30dcfade809b061358a92a59973/assets/img/egeria.png
keywords:
Expand Down
15 changes: 9 additions & 6 deletions charts/egeria-base/templates/kafka-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,21 @@ spec:
initialDelaySeconds: 15
timeoutSeconds: 5
storage:
type: jbod
volumes:
- id: 0
type: persistent-claim
size: 5Gi
deleteClaim: true
type: persistent-claim
size: 5Gi
deleteClaim: true
{{- if .Values.storageClassName }}
class: {{ .Values.storageClassName }}
{{- end }}
zookeeper:
replicas: 1
storage:
type: persistent-claim
size: 1Gi
deleteClaim: true
{{- if .Values.storageClassName }}
class: {{ .Values.storageClassName }}
{{- end }}
entityOperator:
topicOperator:
reconciliationIntervalSeconds: 5
Expand Down
6 changes: 3 additions & 3 deletions charts/egeria-base/templates/platform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ spec:
resources:
requests:
storage: {{ .Values.egeria.storageSize}}
{{ if .Values.egeria.storageClass }}
storageClassName: {{ .Values.egeria.storageClass }}
{{ end }}
{{- if .Values.storageClassName }}
storageClassName: {{ .Values.storageClassName }}
{{- end }}
{{ end }}
...
5 changes: 3 additions & 2 deletions charts/egeria-base/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ egeria:
viewOrg: org
# Cohort name
cohort: mds
# Set to override the k8s storage class for persistent volume claim
storageClass:
# Default to 8GB
storageSize: 8Gi
# Whether a default configuration is performed or not. Note that the environment for
Expand Down Expand Up @@ -217,3 +215,6 @@ lineage:
# These are used to override name of the egeria deployment in the helpers template
fullnameOverride:
nameOverride:

# Set to override the k8s storage class for persistent volume claim
storageClassName:
2 changes: 1 addition & 1 deletion charts/odpi-egeria-lab/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
name: odpi-egeria-lab
description: Egeria lab environment
apiVersion: v2
version: 4.0.0-prerelease.9
version: 4.0.0-prerelease.10
appVersion: "4.0"
icon: https://raw.githubusercontent.com/odpi/egeria/99016e77167fa30dcfade809b061358a92a59973/assets/img/egeria.png
keywords:
Expand Down
4 changes: 3 additions & 1 deletion charts/odpi-egeria-lab/templates/egeria-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ spec:
resources:
requests:
storage: 8Gi
#storageClassName:
{{- if .Values.storageClassName }}
storageClassName: {{ .Values.storageClassName }}
{{- end }}
{{ end }}
...
20 changes: 11 additions & 9 deletions charts/odpi-egeria-lab/templates/egeria-datalake.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,16 @@ spec:
restartPolicy: Always
{{ if .Values.persistence.enabled }}
volumeClaimTemplates:
- metadata:
name: {{ .Release.Name }}-datalake-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
#storageClassName:
- metadata:
name: {{ .Release.Name }}-datalake-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
{{- if .Values.storageClassName }}
storageClassName: {{ .Values.storageClassName }}
{{- end }}
{{ end }}
...
20 changes: 11 additions & 9 deletions charts/odpi-egeria-lab/templates/egeria-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,14 +131,16 @@ spec:
restartPolicy: Always
{{ if .Values.persistence.enabled }}
volumeClaimTemplates:
- metadata:
name: {{ .Release.Name }}-dev-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
#storageClassName:
- metadata:
name: {{ .Release.Name }}-dev-data
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 8Gi
{{- if .Values.storageClassName }}
storageClassName: {{ .Values.storageClassName }}
{{- end }}
{{ end }}
...
4 changes: 3 additions & 1 deletion charts/odpi-egeria-lab/templates/egeria-factory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,8 @@ spec:
resources:
requests:
storage: 8Gi
#storageClassName:
{{ if .Values.storageClassName }}
storageClassName: {{ .Values.storageClassName }}
{{ end }}
{{ end }}
...
6 changes: 3 additions & 3 deletions charts/odpi-egeria-lab/templates/jupyter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ spec:
resources:
requests:
storage: {{ .Values.jupyter.storageSize | default "1Gi" }}
{{ if .Values.egeria.storageClass }}
storageClassName: {{ .Values.jupyter.StorageClass }}
{{ end }}
{{- if .Values.storageClassName }}
storageClassName: {{ .Values.storageClassName }}
{{- end }}
...
15 changes: 9 additions & 6 deletions charts/odpi-egeria-lab/templates/kafka-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,22 @@ spec:
initialDelaySeconds: 15
timeoutSeconds: 5
storage:
type: jbod
volumes:
- id: 0
type: persistent-claim
size: 5Gi
deleteClaim: true
type: persistent-claim
size: 5Gi
deleteClaim: true
{{- if .Values.storageClassName }}
class: {{ .Values.storageClassName }}
{{- end }}
resources: {{ .Values.kafka.resources | toYaml | nindent 6 }}
zookeeper:
replicas: {{ .Values.zookeeper.replicas }}
storage:
type: persistent-claim
size: 1Gi
deleteClaim: true
{{- if .Values.storageClassName }}
class: {{ .Values.storageClassName }}
{{- end }}
resources: {{ .Values.zookeeper.resources | toYaml | nindent 6 }}
entityOperator:
topicOperator:
Expand Down
3 changes: 3 additions & 0 deletions charts/odpi-egeria-lab/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ serviceAccount:
persistence:
enabled: false

# Storage Class - used for all allocations
storageClassName:

# Normally we install the strimzi operator as part of the Chart. However this requires admin permissions, and
# will create cluster-scoped resources. Set to false to skip this when in a restricted environment, or needing multiple
# installs of egeria charts in the same cluster. Requires the strimzi operator to be
Expand Down
5 changes: 5 additions & 0 deletions config/values/lab-storageclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SPDX-License-Identifier: Apache-2.0
# Copyright Contributors to the Egeria project.

# Example of showing how to use a specific storageclass
storageClassName: ibmc-vpc-block-general-purpose

0 comments on commit c859513

Please sign in to comment.