简体   繁体   中英

How to add flag to Kubernetes controller manager

I'm new to K8s. In process to config Openstack Cinder as K8s StorageClass, i have to add some flags to my kube controller manager, and I found that it's my big problem. I'm using K8s 1.11 in VMs, and my K8s cluster has a kube-controller-manager pod, but I don't know how to add these flags to my kube-controller-manager. After hours search, i found that there's a lot of task require add flag to kube-controller-manager, but no exactly document guide me how to do that. Please share me the way to go over it.

Thank you.

You can check /etc/kubernetes/manifests dir on your master nodes. This dir would contain yaml files for master components.

These are also known as static pods.

More Info : https://kubernetes.io/docs/tasks/administer-cluster/static-pod/

Update these files and you would be able to see your changes as kubelet should restart the pod on file change.

As a more long term solution, you will need to incorporate the flags to the tooling that you use to generate your k8s cluster.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM