<p>I want to setup the feature gates argument in the apiserver pod. How I can do it? I have triedit it by using the solution from <a href="https://stackoverflow.com/questions/48718465/kubeadm-kubectl-kube-apiserver-turn-on-feature-gate/">here</a>:</p>

<pre><code>apiVersion: kubeadm.k8s.io/v1alpha1
kind: MasterConfiguration
apiServerExtraArgs:
  feature-gates: "RuntimeClass=true"
</code></pre>

<p>But it is not working: </p>

<pre><code>kubectl apply -f update_api_server.yaml 
error: unable to recognize "update_api_server.yaml": no matches for kind "MasterConfiguration" in version "kubeadm.k8s.io/v1alpha1"
</code></pre>

<p>I'm using k8s v1.13.0.
Thanks</p>

<p>It can be done directly in <code>/etc/kubernetes/manifests/kube-apiserver.yaml</code>. Adding this line to the command: <code>- --feature-gates=RuntimeClass=true</code></p>
