ConfigMap in KinD cluster not being applied

I want to enable authorization and authentication in my ScyllaDB Alternator cluster running in an KinD kubernetes cluster.

I’ve created a ConfigMap as described in the docs

apiVersion: v1
kind: ConfigMap
metadata:
  name: scylla-config
  namespace: scylla
data:
  # property-like keys; each key maps to a simple value
  authenticator: PasswordAuthenticator
  authorizer: CassandraAuthorizer

and I’ve added that to the cluster.yaml file I’m using to create the scyllaDb cluster. I can see the configMap via kubectl describe Configmap scylla-config -n scylla so I know it’s there.

❯ k describe configmap scylla-config -n scylla
Name:         scylla-config
Namespace:    scylla
Labels:       <none>
Annotations:  <none>

Data
====
authenticator:
----
PasswordAuthenticator

authorizer:
----
CassandraAuthorizer


BinaryData
====

Events:  <none>

However, the settings in the configMap do not appear in the /etc/scylla/scylla.yaml file in the created cluster.

I’ve even restarted the cluster, but the configMap is there before the scylla cluster is created.

What am I missing?

Additional information: I am able to directly edit /etc/scylla/scylla.yaml in the pod to add the values in, but when I restart the pod, the values are gone.

Had the config map wrong!!

Here’s the correct one for anyone else with this problem:

apiVersion: v1
kind: ConfigMap
metadata:
  name: scylla-config
  namespace: scylla
data:
  # property-like keys; each key maps to a simple value
  scylla.yaml: |
    authenticator: PasswordAuthenticator
    authorizer: CassandraAuthorizer
1 Like