diff options
author | Sylvain Desbureaux <sylvain.desbureaux@orange.com> | 2022-03-02 13:26:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-03-02 13:26:45 +0000 |
commit | 313a088094582dbcee81eb2d1d1a9cd1e7fdaffc (patch) | |
tree | 2e8f29e8c33ecb70d5aecc2e0fc0bba189a9755d /kubernetes/portal/components/portal-mariadb | |
parent | b682891a41613e6fc6bc6730733aa9a1fee83a7e (diff) | |
parent | 31234fc165623b709e281882e2d2982d80d596e6 (diff) |
Merge "[PORTAL] Update chart with service account"
Diffstat (limited to 'kubernetes/portal/components/portal-mariadb')
3 files changed, 10 insertions, 0 deletions
diff --git a/kubernetes/portal/components/portal-mariadb/Chart.yaml b/kubernetes/portal/components/portal-mariadb/Chart.yaml index cef1b64e51..a152d71d89 100644 --- a/kubernetes/portal/components/portal-mariadb/Chart.yaml +++ b/kubernetes/portal/components/portal-mariadb/Chart.yaml @@ -27,3 +27,6 @@ dependencies: - name: repositoryGenerator version: ~10.x-0 repository: '@local' + - name: serviceAccount + version: ~10.x-0 + repository: '@local' diff --git a/kubernetes/portal/components/portal-mariadb/templates/deployment.yaml b/kubernetes/portal/components/portal-mariadb/templates/deployment.yaml index 7e94c76896..1d0d5bc5e5 100644 --- a/kubernetes/portal/components/portal-mariadb/templates/deployment.yaml +++ b/kubernetes/portal/components/portal-mariadb/templates/deployment.yaml @@ -102,6 +102,7 @@ spec: affinity: {{ toYaml .Values.affinity | indent 10 }} {{- end }} + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} volumes: {{- if .Values.persistence.enabled }} - name: mariadb-data diff --git a/kubernetes/portal/components/portal-mariadb/values.yaml b/kubernetes/portal/components/portal-mariadb/values.yaml index 99dda390b4..a7fdb54d78 100644 --- a/kubernetes/portal/components/portal-mariadb/values.yaml +++ b/kubernetes/portal/components/portal-mariadb/values.yaml @@ -145,3 +145,9 @@ resources: cpu: 800m memory: 1Gi unlimited: {} + +#Pods Service Account +serviceAccount: + nameOverride: portal-db + roles: + - read |