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/sdnc | |
parent | 38677306a64d7aab6154d76972310c3fc38b36d7 (diff) | |
parent | d804418c890dde93bff26125b8cf1a9fd7fc82d1 (diff) |
Merge "[OOM] Fixing k8s ServiceAccounts"
Diffstat (limited to 'kubernetes/sdnc')
-rwxr-xr-x | kubernetes/sdnc/templates/job.yaml | 1 | ||||
-rwxr-xr-x | kubernetes/sdnc/templates/sdnrdb-init-job.yaml | 1 | ||||
-rw-r--r-- | kubernetes/sdnc/values.yaml | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/kubernetes/sdnc/templates/job.yaml b/kubernetes/sdnc/templates/job.yaml index b6dc32b096..e1d24b10fe 100755 --- a/kubernetes/sdnc/templates/job.yaml +++ b/kubernetes/sdnc/templates/job.yaml @@ -159,6 +159,7 @@ spec: {{- if .Values.affinity }} affinity: {{ toYaml .Values.affinity | nindent 8 }} {{- end }} + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} volumes: - name: localtime hostPath: diff --git a/kubernetes/sdnc/templates/sdnrdb-init-job.yaml b/kubernetes/sdnc/templates/sdnrdb-init-job.yaml index a36b97d39c..6c6e33a951 100755 --- a/kubernetes/sdnc/templates/sdnrdb-init-job.yaml +++ b/kubernetes/sdnc/templates/sdnrdb-init-job.yaml @@ -91,6 +91,7 @@ spec: {{- if .Values.affinity }} affinity: {{ toYaml .Values.affinity | nindent 10 }} {{- end }} + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} volumes: - name: localtime hostPath: diff --git a/kubernetes/sdnc/values.yaml b/kubernetes/sdnc/values.yaml index 9a00798545..f1a428fb33 100644 --- a/kubernetes/sdnc/values.yaml +++ b/kubernetes/sdnc/values.yaml @@ -389,6 +389,8 @@ kafkaUser: *kafkaUser # dependency / sub-chart configuration network-name-gen: enabled: true + serviceAccount: + nameOverride: sdnc-name-gen mariadb-galera: &mariadbGalera nameOverride: &sdnc-db sdnc-db config: &mariadbGaleraConfig |