# Enable Feature Flags on k3s

**URL:** <https://forums.suse.com/t/enable-feature-flags-on-k3s/20350>\
**Category:** k3s, k3OS, and k3d\
**Created:** [May 19, 2021, 5:48pm UTC](https://forums.suse.com/t/enable-feature-flags-on-k3s/20350 "2021-05-19T17:48:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jallen-a10](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@jallen-a10](https://forums.suse.com/u/jallen-a10)\
**Post date:** [May 19, 2021, 5:48pm UTC](https://forums.suse.com/t/enable-feature-flags-on-k3s/20350/1 "2021-05-19T17:48:57Z")

</div>

I have a four-node K3OS cluster of 1.20.6 running, but having problems getting a Pod to start. It’s complaining that the ‘selfLink’ is empty. ‘selfLink’ was a feature that was deprecated in 1.17+. I need to be able to turn on the “RemoveSelfLink=false” Feature Gate that seems to be in all the other distro’s of K8s I’ve tried, but there is nothing in the k3s docs about how to do this? I can’t find any obvious kube-apiserver config file to even try and set this Feature Flag.

We would love to support Rancher products, but unless I can turn this Feature Gate off, we’ll have to wait until we can code a work-around.

Thanks!

---

<div class="post-metadata">

**Author:** ![rafelbev](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/rafelbev/32/7631_2.png) [@rafelbev](https://forums.suse.com/u/rafelbev)\
**Post date:** [May 29, 2021, 4:42pm UTC](https://forums.suse.com/t/enable-feature-flags-on-k3s/20350/2 "2021-05-29T16:42:00Z")

</div>

Hi,

I’m too running k3os and I got stumped by this issue due to nfs-client-provisioner now being incapable of fulfilling new pvcs. I solved it with the below line inside /var/lib/rancher/k3os/config.yaml until the provisioner gets fixed upstream.

k3os:  
k3s\_args:

- “–kube-apiserver-arg”
- “feature-gates=RemoveSelfLink=false”

Note that I had to add the feature-gates flag on a seperate line so that the parser can understand it correctly but I didn’t need to requote it.

Hope this helps you or anyone else who has upgraded his cluster to the latest k3os running on 1.20.6 or above.

---

<div class="post-metadata">

**Author:** ![jallen-a10](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@jallen-a10](https://forums.suse.com/u/jallen-a10)\
**Post date:** [May 29, 2021, 10:52pm UTC](https://forums.suse.com/t/enable-feature-flags-on-k3s/20350/3 "2021-05-29T22:52:35Z")

</div>

Thank you rafelbev! I had to add this to the _/k3os/system/config.yaml_ file on my master node, as my cluster didn’t even have a _/var/lib/rancher_ directory.

So here is how my config.yaml file looks like now:

```
k3os:
  password: secret-password
  token: secret-token
  k3s_args:
    - --disable=traefik
    - --kube-apiserver-arg
    - feature-gates=RemoveSelfLink=false

```

And its working now. 🙂
