commit | 1b30d537e09055e74e71b8b814ecd9eb8f0ecf16 | [log] [tgz] |
---|---|---|
author | farida azmy <farida.azmy.ext@orange.com> | Sun Apr 11 10:41:28 2021 +0200 |
committer | Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com> | Tue Sep 07 20:38:54 2021 +0000 |
tree | eb3add268846ca52bb571139390c798d6c86f2c6 | |
parent | 3980a8cbeb63c885b123ac50033e32ed996bb39a [diff] |
[CONSUL] Update chart with service account Add service account to requirements, values and deployment/statefulset Issue-ID: OOM-2725 Signed-off-by: farida azmy <farida.azmy.ext@orange.com> Change-Id: Ib3c768d074f5cf64e2f213fd31ee4b8517a21c09 Signed-off-by: Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com>
diff --git a/kubernetes/consul/components/consul-server/requirements.yaml b/kubernetes/consul/components/consul-server/requirements.yaml index 7afdbc9..e43236d 100644 --- a/kubernetes/consul/components/consul-server/requirements.yaml +++ b/kubernetes/consul/components/consul-server/requirements.yaml
@@ -20,3 +20,9 @@ # a part of this chart's package and will not # be published independently to a repo (at this point) repository: '@local' + - name: serviceAccount + version: ~8.x-0 + repository: '@local' + - name: repositoryGenerator + version: ~8.x-0 + repository: '@local'
diff --git a/kubernetes/consul/components/consul-server/templates/statefulset.yaml b/kubernetes/consul/components/consul-server/templates/statefulset.yaml index 16fda3a..8e872b9 100644 --- a/kubernetes/consul/components/consul-server/templates/statefulset.yaml +++ b/kubernetes/consul/components/consul-server/templates/statefulset.yaml
@@ -74,3 +74,4 @@ initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }} periodSeconds: {{ .Values.readiness.periodSeconds }} resources: {{ include "common.resources" . | nindent 10 }} + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
diff --git a/kubernetes/consul/components/consul-server/values.yaml b/kubernetes/consul/components/consul-server/values.yaml index 48a26ef..d4e6494 100644 --- a/kubernetes/consul/components/consul-server/values.yaml +++ b/kubernetes/consul/components/consul-server/values.yaml
@@ -92,3 +92,9 @@ fsGroup: 1000 runAsUser: 100 runAsGroup: 1000 + +#Pods Service Account +serviceAccount: + nameOverride: consul-server + roles: + - read