diff options
author | farida azmy <farida.azmy.ext@orange.com> | 2021-09-12 12:56:40 +0200 |
---|---|---|
committer | Abdelmuhaimen Seaudi <abdelmuhaimen.seaudi@orange.com> | 2021-09-18 01:02:53 +0000 |
commit | 5093301c1d25daaa2e9a42fd7d1ed09c06693208 (patch) | |
tree | 0a875496095b3dcbfe8fe93b68bb91024efe00e5 /kubernetes/dcaemod/components/dcaemod-genprocessor | |
parent | d362d9f64521d4585f779ff450f547da1ac00adb (diff) |
[DCAEMOD] Update chart with service account
Add service account to requirements, values & deployment/statefulset
Issue-ID: OOM-2827
Signed-off-by: farida azmy <farida.azmy.ext@orange.com>
Change-Id: Icdf48ad2b443b0c360ee89b13cae5a0db6c74dce
Diffstat (limited to 'kubernetes/dcaemod/components/dcaemod-genprocessor')
3 files changed, 10 insertions, 0 deletions
diff --git a/kubernetes/dcaemod/components/dcaemod-genprocessor/requirements.yaml b/kubernetes/dcaemod/components/dcaemod-genprocessor/requirements.yaml index b242fbf51d..268442616b 100644 --- a/kubernetes/dcaemod/components/dcaemod-genprocessor/requirements.yaml +++ b/kubernetes/dcaemod/components/dcaemod-genprocessor/requirements.yaml @@ -22,3 +22,6 @@ dependencies: - name: repositoryGenerator version: ~8.x-0 repository: '@local' + - name: serviceAccount + version: ~8.x-0 + repository: '@local' diff --git a/kubernetes/dcaemod/components/dcaemod-genprocessor/templates/deployment.yaml b/kubernetes/dcaemod/components/dcaemod-genprocessor/templates/deployment.yaml index 40b0f3edc4..26f6586688 100644 --- a/kubernetes/dcaemod/components/dcaemod-genprocessor/templates/deployment.yaml +++ b/kubernetes/dcaemod/components/dcaemod-genprocessor/templates/deployment.yaml @@ -72,6 +72,7 @@ spec: - mountPath: /www/data name: genprocessor-data readOnly: true + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} volumes: - name: genprocessor-data persistentVolumeClaim: diff --git a/kubernetes/dcaemod/components/dcaemod-genprocessor/values.yaml b/kubernetes/dcaemod/components/dcaemod-genprocessor/values.yaml index 4b79525c83..81c5888f10 100644 --- a/kubernetes/dcaemod/components/dcaemod-genprocessor/values.yaml +++ b/kubernetes/dcaemod/components/dcaemod-genprocessor/values.yaml @@ -96,3 +96,9 @@ resources: memory: 2Gi unlimited: {} +#Pods Service Account +serviceAccount: + nameOverride: dcaemod-genprocessor + roles: + - read + |