使用kops设置集群时,如何修改kube-apiserver参数?

时间:2019-06-25 21:37:04

标签: kubernetes kops kube-apiserver

kube-apiserver没有运行

/var/log/kube-apiserver.log具有以下内容:

Flag --address has been deprecated, see --insecure-bind-address instead.

这些值在哪里存储/配置?


我的意思是,是我修改过的kops配置的起源。但是我无法反映这些变化:

kops rolling-update cluster
Using cluster from kubectl context: uuuuuuuuuuuuuuuuuuuuuu
Unable to reach the kubernetes API.
Use --cloudonly to do a rolling-update without confirming progress with the k8s API


error listing nodes in cluster: Get https://api.uuuuuuuuuu/api/v1/nodes: dial tcp eeeeeeeeeeeeeee:443: connect: connection refused

1 个答案:

答案 0 :(得分:2)

https://stackoverflow.com/a/50356764/1663462

修改/etc/kubernetes/manifests/kube-apiserver.manifest

然后重新启动kubelet:systemctl status kubelet