How to enable a feature gate on the go?

5/14/2019

I want to enable feature gate VolumeSubpathEnvExpansion on a 1.13 kubernetes cluster. I did not found any information about enabling a feature gate for a running cluster.

-- Morgan Le Floc'h
kubernetes

1 Answer

5/14/2019

You can pass --feature-gates= to kubelet. Find systemd's or whatever init system you are using's and edit the kubelet start line to add in VolumeSubpathEnvExpansion and restart kublet service. It is a comma separated list so you might find that your kubelet already has --feature-gates= passed to it with other args.

https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/

-- Michael Papile
Source: StackOverflow