aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/multicloud/components/multicloud-starlingx
diff options
context:
space:
mode:
authorfarida azmy <farida.azmy.ext@orange.com>2021-10-12 18:55:21 +0200
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>2021-11-03 14:56:39 +0000
commit72513551b8489de68d2e1f20284b2f0962f6e514 (patch)
tree0d3e9d3f1e7dcf3c2275d6c14173b885ea2a06a6 /kubernetes/multicloud/components/multicloud-starlingx
parentdcaeb1a1320c1db4b4a84e99e7ab4a31dc84fa14 (diff)
[MULTICLOUD] Update chart with service account
Add service account to requirements, values and deployment/statefulset Issue-ID: OOM-2862 Signed-off-by: farida azmy <farida.azmy.ext@orange.com> Change-Id: Ia20fb51256e20e6582a2b9e0d89159742992fea4
Diffstat (limited to 'kubernetes/multicloud/components/multicloud-starlingx')
-rw-r--r--kubernetes/multicloud/components/multicloud-starlingx/requirements.yaml3
-rw-r--r--kubernetes/multicloud/components/multicloud-starlingx/templates/deployment.yaml2
-rw-r--r--kubernetes/multicloud/components/multicloud-starlingx/values.yaml6
3 files changed, 10 insertions, 1 deletions
diff --git a/kubernetes/multicloud/components/multicloud-starlingx/requirements.yaml b/kubernetes/multicloud/components/multicloud-starlingx/requirements.yaml
index c2d6f85118..27373df61e 100644
--- a/kubernetes/multicloud/components/multicloud-starlingx/requirements.yaml
+++ b/kubernetes/multicloud/components/multicloud-starlingx/requirements.yaml
@@ -21,3 +21,6 @@ dependencies:
- name: repositoryGenerator
version: ~9.x-0
repository: '@local'
+ - name: serviceAccount
+ version: ~9.x-0
+ repository: '@local'
diff --git a/kubernetes/multicloud/components/multicloud-starlingx/templates/deployment.yaml b/kubernetes/multicloud/components/multicloud-starlingx/templates/deployment.yaml
index 5413327d0b..7c39bb7006 100644
--- a/kubernetes/multicloud/components/multicloud-starlingx/templates/deployment.yaml
+++ b/kubernetes/multicloud/components/multicloud-starlingx/templates/deployment.yaml
@@ -111,7 +111,7 @@ spec:
subPath: config.json
- mountPath: /data
name: artifact-data
-
+ serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
volumes:
- name: starlingx-log
emptyDir: {}
diff --git a/kubernetes/multicloud/components/multicloud-starlingx/values.yaml b/kubernetes/multicloud/components/multicloud-starlingx/values.yaml
index aa471027f1..69e4d943bd 100644
--- a/kubernetes/multicloud/components/multicloud-starlingx/values.yaml
+++ b/kubernetes/multicloud/components/multicloud-starlingx/values.yaml
@@ -88,3 +88,9 @@ resources:
cpu: 20m
memory: 2Gi
unlimited: {}
+
+#Pods Service Account
+serviceAccount:
+ nameOverride: multicloud-starlingx
+ roles:
+ - read