diff options
author | Andreas Geissler <andreas-geissler@telekom.de> | 2023-08-08 12:57:52 +0200 |
---|---|---|
committer | Andreas Geissler <andreas-geissler@telekom.de> | 2023-08-09 14:17:12 +0200 |
commit | 6212653fb318e884a8d3691bab3d4586cc7865c6 (patch) | |
tree | f2e9e7509c5229b98f802307ed1515b2931a4425 /kubernetes/common | |
parent | 930f3dcb63f5fdd99cac9f80adfafe95fdc43322 (diff) |
[COMMON] Fix for ServiceAccount in network-name-gen
Added missing SA definition in values.yaml and changed
location in deployment.yaml
Issue-ID: OOM-3199
Change-Id: I1d488e8d0d65c4cd3cf0ae21d22fa1143c8d64ab
Signed-off-by: Andreas Geissler <andreas-geissler@telekom.de>
Diffstat (limited to 'kubernetes/common')
-rw-r--r-- | kubernetes/common/network-name-gen/templates/deployment.yaml | 2 | ||||
-rw-r--r-- | kubernetes/common/network-name-gen/values.yaml | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/kubernetes/common/network-name-gen/templates/deployment.yaml b/kubernetes/common/network-name-gen/templates/deployment.yaml index 940132f477..b170c8fea6 100644 --- a/kubernetes/common/network-name-gen/templates/deployment.yaml +++ b/kubernetes/common/network-name-gen/templates/deployment.yaml @@ -102,10 +102,10 @@ spec: {{ toYaml .Values.nodeSelector | indent 10 }} {{- end -}} {{- if .Values.affinity }} - serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} affinity: {{ toYaml .Values.affinity | indent 10 }} {{- end }} + serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}} volumes: - name: certs secret: diff --git a/kubernetes/common/network-name-gen/values.yaml b/kubernetes/common/network-name-gen/values.yaml index e3fdb80e71..5858e84389 100644 --- a/kubernetes/common/network-name-gen/values.yaml +++ b/kubernetes/common/network-name-gen/values.yaml @@ -135,3 +135,9 @@ ingress: enabled: false resources: {} + +#Pods Service Account +serviceAccount: + nameOverride: network-name-gen + roles: + - read
\ No newline at end of file |