<p>I am trying to enable feature gates on a Kubernetes cluster. I have tried using kubeadm call </p>

<pre><code>kubeadm config images list --feature-gates TTLAfterFinished=true
</code></pre>

<p>however I get the error </p>

<pre><code>unrecognized feature-gate key: TTLAfterFinished
</code></pre>

<p>I am using Rancher to build and deploy the cluster. I am using this site to determine the name of the feature gates to enable. <a href="https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/" rel="nofollow noreferrer">https://kubernetes.io/docs/reference/command-line-tools-reference/feature-gates/</a></p>

<p>I struggled with this as well. Here is the solution to update the feature gates via Rancher API or Rancher UI. You can use the edited cluster via API feature as shown in the answer that worked for me.</p>

<p><a href="https://stackoverflow.com/a/51373855/5617140">https://stackoverflow.com/a/51373855/5617140</a></p>

<p>Hope this helps.</p>
