[英]Setup the feature gate RuntimeClass in kube-apiserver
I want to setup the feature gates argument in the apiserver pod. 我想在apiserver窗格中设置Feature Gates参数。 How I can do it?
我该怎么办? I have triedit it by using the solution from here :
我已经尝试过使用这里的解决方案:
apiVersion: kubeadm.k8s.io/v1alpha1
kind: MasterConfiguration
apiServerExtraArgs:
feature-gates: "RuntimeClass=true"
But it is not working: 但它不起作用:
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"
I'm using k8s v1.13.0. 我正在使用k8s v1.13.0。 Thanks
谢谢
It can be done directly in /etc/kubernetes/manifests/kube-apiserver.yaml
. 可以直接在
/etc/kubernetes/manifests/kube-apiserver.yaml
完成。 Adding this line to the command: - --feature-gates=RuntimeClass=true
将此行添加到命令:
- --feature-gates=RuntimeClass=true
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.