summaryrefslogtreecommitdiffstats
path: root/kubernetes/cli
diff options
context:
space:
mode:
authorfarida azmy <farida.azmy.ext@orange.com>2021-10-02 15:18:20 +0200
committerFarida Azmy <farida.azmy.ext@orange.com>2021-10-03 08:17:33 +0000
commit11e021d103a564950f284f0940a45c23a6c5e102 (patch)
tree24a87fccac0625f8fbf5f48dfd9c9e53609be567 /kubernetes/cli
parenta001a61bdd6430027b39281f9d79366e837c7494 (diff)
[CLI] Update chart with service account
Add service account to requirements, values and deployment/statefulset Issue-ID: OOM-2847 Signed-off-by: farida azmy <farida.azmy.ext@orange.com> Change-Id: I0549062fed7a66b9627cfbd53814d7b79bded947
Diffstat (limited to 'kubernetes/cli')
-rw-r--r--kubernetes/cli/requirements.yaml3
-rw-r--r--kubernetes/cli/templates/deployment.yaml1
-rw-r--r--kubernetes/cli/values.yaml6
3 files changed, 10 insertions, 0 deletions
diff --git a/kubernetes/cli/requirements.yaml b/kubernetes/cli/requirements.yaml
index e2ce84d0a3..2394a6700d 100644
--- a/kubernetes/cli/requirements.yaml
+++ b/kubernetes/cli/requirements.yaml
@@ -25,3 +25,6 @@ dependencies:
- name: repositoryGenerator
version: ~8.x-0
repository: '@local'
+ - name: serviceAccount
+ version: ~8.x-0
+ repository: '@local'
diff --git a/kubernetes/cli/templates/deployment.yaml b/kubernetes/cli/templates/deployment.yaml
index 735308754f..0a3f967eee 100644
--- a/kubernetes/cli/templates/deployment.yaml
+++ b/kubernetes/cli/templates/deployment.yaml
@@ -75,6 +75,7 @@ spec:
affinity:
{{ toYaml .Values.affinity | indent 10 }}
{{- end }}
+ serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
volumes: {{ include "common.certInitializer.volumes" . | nindent 6 }}
- name: lighttpd
configMap:
diff --git a/kubernetes/cli/values.yaml b/kubernetes/cli/values.yaml
index 4dcee4568c..28d227645a 100644
--- a/kubernetes/cli/values.yaml
+++ b/kubernetes/cli/values.yaml
@@ -126,3 +126,9 @@ resources:
cpu: 2
memory: 4Gi
unlimited: {}
+
+#Pods Service Account
+serviceAccount:
+ nameOverride: cli
+ roles:
+ - read