# How do I reset the the microk8s config?

**URL:** <https://discuss.kubernetes.io/t/how-do-i-reset-the-the-microk8s-config/17130>\
**Category:** microk8s\
**Created:** [August 18, 2021, 2:27pm UTC](https://discuss.kubernetes.io/t/how-do-i-reset-the-the-microk8s-config/17130 "2021-08-18T14:27:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ninom](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/ninom/32/8048_2.png) [@ninom](https://discuss.kubernetes.io/u/ninom)\
**Post date:** [August 18, 2021, 2:27pm UTC](https://discuss.kubernetes.io/t/how-do-i-reset-the-the-microk8s-config/17130/1 "2021-08-18T14:27:45Z")

</div>

I want to reset the microk8s config of my node. Basically what I want is that all people that ever had access to the config will not be able to connect to the server with it anymore and that a new config is created. How do I renew this?

---

<div class="post-metadata">

**Author:** ![balchua1](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/balchua1/32/5372_2.png) [@balchua1](https://discuss.kubernetes.io/u/balchua1)\
**Post date:** [August 18, 2021, 10:49pm UTC](https://discuss.kubernetes.io/t/how-do-i-reset-the-the-microk8s-config/17130/2 "2021-08-18T22:49:22Z")

</div>

This is how i will do.

1. first generate a new token like this.

```auto
admin_token=$(openssl rand -base64 32 | ${SNAP}/usr/bin/base64)

```

1. Get the value of the `admin_token`

2. replace the token in the row with `admin` In the file `/var/snap/microk8s/current/credentials/known_tokens.csv`

3. Dont forget to also replace the token in the file  
`/var/snap/microk8s/current/credentials/client.config`

4. Restart microk8s.

**Don’t forget to backup any file you are going to modify.**
