summaryrefslogtreecommitdiffstats
path: root/kubernetes/multicloud/components/multicloud-k8s
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2021-11-04 08:35:29 +0000
committerGerrit Code Review <gerrit@onap.org>2021-11-04 08:35:29 +0000
commitfe6e6f63ab60274f56ba3a1a93816bead266faa4 (patch)
tree24bd23135e6d25825431fa057afd1281701d9735 /kubernetes/multicloud/components/multicloud-k8s
parent0be98332f1b0abef6f8877f1cdae95a06901c377 (diff)
parent72513551b8489de68d2e1f20284b2f0962f6e514 (diff)
Merge "[MULTICLOUD] Update chart with service account"
Diffstat (limited to 'kubernetes/multicloud/components/multicloud-k8s')
-rw-r--r--kubernetes/multicloud/components/multicloud-k8s/requirements.yaml3
-rw-r--r--kubernetes/multicloud/components/multicloud-k8s/templates/deployment.yaml2
-rw-r--r--kubernetes/multicloud/components/multicloud-k8s/values.yaml6
3 files changed, 10 insertions, 1 deletions
diff --git a/kubernetes/multicloud/components/multicloud-k8s/requirements.yaml b/kubernetes/multicloud/components/multicloud-k8s/requirements.yaml
index 434abf9ab5..eebca63b29 100644
--- a/kubernetes/multicloud/components/multicloud-k8s/requirements.yaml
+++ b/kubernetes/multicloud/components/multicloud-k8s/requirements.yaml
@@ -29,3 +29,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-k8s/templates/deployment.yaml b/kubernetes/multicloud/components/multicloud-k8s/templates/deployment.yaml
index 9f50d35784..e63be9c81c 100644
--- a/kubernetes/multicloud/components/multicloud-k8s/templates/deployment.yaml
+++ b/kubernetes/multicloud/components/multicloud-k8s/templates/deployment.yaml
@@ -85,7 +85,7 @@ spec:
subPath: config.json
- mountPath: /data
name: artifact-data
-
+ serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
volumes:
- name: localtime
hostPath:
diff --git a/kubernetes/multicloud/components/multicloud-k8s/values.yaml b/kubernetes/multicloud/components/multicloud-k8s/values.yaml
index 0126594693..1c7c8fa489 100644
--- a/kubernetes/multicloud/components/multicloud-k8s/values.yaml
+++ b/kubernetes/multicloud/components/multicloud-k8s/values.yaml
@@ -133,3 +133,9 @@ resources:
cpu: 10m
memory: 100Mi
unlimited: {}
+
+#Pods Service Account
+serviceAccount:
+ nameOverride: multicloud-k8s
+ roles:
+ - read