summaryrefslogtreecommitdiffstats
path: root/kubernetes/portal/components/portal-cassandra
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/portal/components/portal-cassandra')
-rw-r--r--kubernetes/portal/components/portal-cassandra/Chart.yaml3
-rw-r--r--kubernetes/portal/components/portal-cassandra/templates/deployment.yaml1
-rw-r--r--kubernetes/portal/components/portal-cassandra/values.yaml8
3 files changed, 11 insertions, 1 deletions
diff --git a/kubernetes/portal/components/portal-cassandra/Chart.yaml b/kubernetes/portal/components/portal-cassandra/Chart.yaml
index f65b413f19..b85fc84b94 100644
--- a/kubernetes/portal/components/portal-cassandra/Chart.yaml
+++ b/kubernetes/portal/components/portal-cassandra/Chart.yaml
@@ -27,3 +27,6 @@ dependencies:
- name: repositoryGenerator
version: ~10.x-0
repository: '@local'
+ - name: serviceAccount
+ version: ~10.x-0
+ repository: '@local'
diff --git a/kubernetes/portal/components/portal-cassandra/templates/deployment.yaml b/kubernetes/portal/components/portal-cassandra/templates/deployment.yaml
index 59eace693a..9becdaa707 100644
--- a/kubernetes/portal/components/portal-cassandra/templates/deployment.yaml
+++ b/kubernetes/portal/components/portal-cassandra/templates/deployment.yaml
@@ -139,6 +139,7 @@ spec:
affinity:
{{ toYaml .Values.affinity | indent 10 }}
{{- end }}
+ serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
volumes:
- name: cassandra-docker-entrypoint-initdb
configMap:
diff --git a/kubernetes/portal/components/portal-cassandra/values.yaml b/kubernetes/portal/components/portal-cassandra/values.yaml
index bed75e5051..c3ffb4ffec 100644
--- a/kubernetes/portal/components/portal-cassandra/values.yaml
+++ b/kubernetes/portal/components/portal-cassandra/values.yaml
@@ -139,4 +139,10 @@ heap:
max: 3G
new: 100M
large: {}
- unlimited: {} \ No newline at end of file
+ unlimited: {}
+
+#Pods Service Account
+serviceAccount:
+ nameOverride: portal-cassandra
+ roles:
+ - read