commit | 31234fc165623b709e281882e2d2982d80d596e6 | [log] [tgz] |
---|---|---|
author | farida azmy <farida.azmy.ext@orange.com> | Tue Nov 02 11:37:40 2021 +0200 |
committer | Farida Azmy <farida.azmy.ext@orange.com> | Tue Mar 01 11:14:02 2022 +0000 |
tree | df35b5925be0ae7d61be38ae7e37f33fce09c275 | |
parent | 79c67fbff6305b007903bef52435f80f28761995 [diff] |
[PORTAL] Update chart with service account Add service account to requirements, values and deployment/statefulset Issue-ID: OOM-2874 Signed-off-by: farida azmy <farida.azmy.ext@orange.com> Change-Id: I878ccfce7d7e02875376bc5941af43d3f10fcb2d
diff --git a/kubernetes/portal/components/portal-cassandra/Chart.yaml b/kubernetes/portal/components/portal-cassandra/Chart.yaml index f65b413..b85fc84 100644 --- a/kubernetes/portal/components/portal-cassandra/Chart.yaml +++ b/kubernetes/portal/components/portal-cassandra/Chart.yaml
@@ -27,3 +27,6 @@ - name: repositoryGenerator version: ~10.x-0 repository: '@local' + - name: serviceAccount + version: ~10.x-0 + repository: '@local'
diff --git a/kubernetes/portal/components/portal-cassandra/templates/deployment.yaml b/kubernetes/portal/components/portal-cassandra/templates/deployment.yaml index 59eace6..9becdaa 100644 --- a/kubernetes/portal/components/portal-cassandra/templates/deployment.yaml +++ b/kubernetes/portal/components/portal-cassandra/templates/deployment.yaml
@@ -139,6 +139,7 @@ affinity: {{ toYaml .Values.affinity | indent 10 }} {{- end }} + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} volumes: - name: cassandra-docker-entrypoint-initdb configMap:
diff --git a/kubernetes/portal/components/portal-cassandra/values.yaml b/kubernetes/portal/components/portal-cassandra/values.yaml index bed75e5..c3ffb4f 100644 --- a/kubernetes/portal/components/portal-cassandra/values.yaml +++ b/kubernetes/portal/components/portal-cassandra/values.yaml
@@ -139,4 +139,10 @@ max: 3G new: 100M large: {} - unlimited: {} \ No newline at end of file + unlimited: {} + +#Pods Service Account +serviceAccount: + nameOverride: portal-cassandra + roles: + - read