When using "localCluster=true" the cassandra uses the "ServiceAccount" to create ServiceAccounts, Roles and RoleBindings.
In my case the aai-cassandra statefulset will require a ServiceAccount named "RELEASE-aai-cassandra-nothing":
serviceAccountName: RELEASE-aai-cassandra-nothing
but the ServiceAccount within cassandra chart is creating:
Reason is, that in kubernetes/aai/values.yaml the nameOverride for serviceAccount for cassandra needs to be added:
cassandra:
nameOverride: aai-cassandra
serviceAccount:
nameOverride: aai-cassandra
replicaCount: 3
service:
name: aai-cassandra
persistence:
mountSubPath: aai/cassandra
enabled: true
When using "localCluster=true" the cassandra uses the "ServiceAccount" to create ServiceAccounts, Roles and RoleBindings.
In my case the aai-cassandra statefulset will require a ServiceAccount named "RELEASE-aai-cassandra-nothing":
serviceAccountName: RELEASE-aai-cassandra-nothing
but the ServiceAccount within cassandra chart is creating:
# Source: aai/charts/cassandra/charts/serviceAccount/templates/service-account.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: RELEASE-cassandra-nothing
---
Reason is, that in kubernetes/aai/values.yaml the nameOverride for serviceAccount for cassandra needs to be added:
cassandra:
nameOverride: aai-cassandra
serviceAccount:
nameOverride: aai-cassandra
replicaCount: 3
service:
name: aai-cassandra
persistence:
mountSubPath: aai/cassandra
enabled: true