diff options
author | Micha? Jagie??o <michal.jagiello@t-mobile.pl> | 2023-08-08 07:55:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2023-08-08 07:55:47 +0000 |
commit | 166f4a318ca9112573c1fe5d0b55060507c9028e (patch) | |
tree | 7e347d7c2743806492f465cf322762a26fc84cb3 /kubernetes/common/postgres-init | |
parent | 38677306a64d7aab6154d76972310c3fc38b36d7 (diff) | |
parent | d804418c890dde93bff26125b8cf1a9fd7fc82d1 (diff) |
Merge "[OOM] Fixing k8s ServiceAccounts"
Diffstat (limited to 'kubernetes/common/postgres-init')
-rw-r--r-- | kubernetes/common/postgres-init/Chart.yaml | 5 | ||||
-rw-r--r-- | kubernetes/common/postgres-init/templates/job.yaml | 1 | ||||
-rw-r--r-- | kubernetes/common/postgres-init/values.yaml | 6 |
3 files changed, 11 insertions, 1 deletions
diff --git a/kubernetes/common/postgres-init/Chart.yaml b/kubernetes/common/postgres-init/Chart.yaml index 34f5352ea8..59008d37bb 100644 --- a/kubernetes/common/postgres-init/Chart.yaml +++ b/kubernetes/common/postgres-init/Chart.yaml @@ -25,4 +25,7 @@ dependencies: repository: 'file://../common' - name: repositoryGenerator version: ~13.x-0 - repository: 'file://../repositoryGenerator'
\ No newline at end of file + repository: 'file://../repositoryGenerator' + - name: serviceAccount + version: ~13.x-0 + repository: '@local'
\ No newline at end of file diff --git a/kubernetes/common/postgres-init/templates/job.yaml b/kubernetes/common/postgres-init/templates/job.yaml index 15260f0b16..09c21fe9e5 100644 --- a/kubernetes/common/postgres-init/templates/job.yaml +++ b/kubernetes/common/postgres-init/templates/job.yaml @@ -102,6 +102,7 @@ spec: affinity: {{ toYaml .Values.affinity | indent 10 }} {{- end }} + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} volumes: - name: localtime hostPath: diff --git a/kubernetes/common/postgres-init/values.yaml b/kubernetes/common/postgres-init/values.yaml index d6d51f0b51..1b9e72b8d7 100644 --- a/kubernetes/common/postgres-init/values.yaml +++ b/kubernetes/common/postgres-init/values.yaml @@ -90,6 +90,12 @@ resources: memory: 2Gi unlimited: {} +#Pods Service Account +serviceAccount: + nameOverride: postgres-init + roles: + - read + wait_for_job_container: containers: - '{{ include "common.name" . }}-update-config'
\ No newline at end of file |