# ConfigMap in KinD cluster not being applied

**URL:** <https://forum.scylladb.com/t/configmap-in-kind-cluster-not-being-applied/3175>\
**Category:** Kubernetes Operator\
**Tags:** alternator, kubernetes, authorization\
**Created:** [November 13, 2024, 2:20pm UTC](https://forum.scylladb.com/t/configmap-in-kind-cluster-not-being-applied/3175 "2024-11-13T14:20:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbwilliamsme](https://avatars.discourse-cdn.com/v4/letter/c/f6c823/32.png) [@cbwilliamsme](https://forum.scylladb.com/u/cbwilliamsme)\
**Post date:** [November 13, 2024, 2:20pm UTC](https://forum.scylladb.com/t/configmap-in-kind-cluster-not-being-applied/3175/1 "2024-11-13T14:20:39Z")

</div>

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

```auto
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.

```auto
❯ 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?

---

<div class="post-metadata">

**Author:** ![cbwilliamsme](https://avatars.discourse-cdn.com/v4/letter/c/f6c823/32.png) [@cbwilliamsme](https://forum.scylladb.com/u/cbwilliamsme)\
**Post date:** [November 13, 2024, 3:21pm UTC](https://forum.scylladb.com/t/configmap-in-kind-cluster-not-being-applied/3175/2 "2024-11-13T15:21:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![cbwilliamsme](https://avatars.discourse-cdn.com/v4/letter/c/f6c823/32.png) [@cbwilliamsme](https://forum.scylladb.com/u/cbwilliamsme)\
**Post date:** [November 13, 2024, 4:17pm UTC](https://forum.scylladb.com/t/configmap-in-kind-cluster-not-being-applied/3175/3 "2024-11-13T16:17:27Z")

</div>

Had the config map wrong!!

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

```auto
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

```
