commit | a4478e8a3cbed645ef4a92c6157935bb2261963c | [log] [tgz] |
---|---|---|
author | farida azmy <farida.azmy.ext@orange.com> | Mon Oct 11 13:48:11 2021 +0200 |
committer | Farida Azmy <farida.azmy.ext@orange.com> | Wed Oct 27 14:27:03 2021 +0000 |
tree | 5f08a9284553b5558f5ea597d0844cff86800307 | |
parent | 2c2be1eea53e97cc1972c0b89571baff92e59484 [diff] |
[MSB] Update chart with service account Add service account to requirements, values and deployment/statefulset Issue-ID: OOM-2861 Signed-off-by: farida azmy <farida.azmy.ext@orange.com> Change-Id: I6670bde473aef92399acd35b1efbfd4743438ef6
diff --git a/kubernetes/msb/components/msb-discovery/requirements.yaml b/kubernetes/msb/components/msb-discovery/requirements.yaml index dbb7638..ca01ea6 100644 --- a/kubernetes/msb/components/msb-discovery/requirements.yaml +++ b/kubernetes/msb/components/msb-discovery/requirements.yaml
@@ -19,3 +19,6 @@ - name: repositoryGenerator version: ~9.x-0 repository: '@local' + - name: serviceAccount + version: ~9.x-0 + repository: '@local'
diff --git a/kubernetes/msb/components/msb-discovery/templates/deployment.yaml b/kubernetes/msb/components/msb-discovery/templates/deployment.yaml index e5e5f9e..00d91fe 100644 --- a/kubernetes/msb/components/msb-discovery/templates/deployment.yaml +++ b/kubernetes/msb/components/msb-discovery/templates/deployment.yaml
@@ -36,7 +36,6 @@ annotations: sidecar.istio.io/inject: "{{.Values.istioSidecar}}" spec: - serviceAccountName: msb initContainers: - command: - /app/ready.py @@ -107,6 +106,7 @@ - mountPath: /opt/ajsc/etc/config/logback.xml name: {{ include "common.fullname" . }}-log-conf subPath: logback.xml + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} volumes: - name: {{ include "common.fullname" . }}-log-conf configMap:
diff --git a/kubernetes/msb/components/msb-discovery/values.yaml b/kubernetes/msb/components/msb-discovery/values.yaml index f0eabde..e980023 100644 --- a/kubernetes/msb/components/msb-discovery/values.yaml +++ b/kubernetes/msb/components/msb-discovery/values.yaml
@@ -82,3 +82,9 @@ cpu: 400m memory: 400Mi unlimited: {} + +#Pods Service Account +serviceAccount: + nameOverride: msb-discovery + roles: + - read