comment KUBELET_API_SERVER on kubernetes 1.8+

pull/100/head
Jimmy Song 2018-01-09 12:45:42 +08:00
parent 980a13d5e7
commit bb0ecdd107
2 changed files with 3 additions and 1 deletions

View File

@ -11,6 +11,7 @@ KUBELET_ADDRESS="--address=172.20.0.113"
KUBELET_HOSTNAME="--hostname-override=172.20.0.113"
#
## location of the api-server
## COMMENT THIS ON KUBERNETES 1.8+
KUBELET_API_SERVER="--api-servers=http://172.20.0.113:8080"
#
## pod infrastructure container

View File

@ -184,7 +184,7 @@ kubelet的配置文件`/etc/kubernetes/kubelet`。其中的IP地址更改为你
相对于kubenrete1.6的配置变动:
- 对于kuberentes1.8集群中的kubelet配置取消了`KUBELET_API_SERVER`的配置而改用kubeconfig文件来定义master地址。
- 对于kuberentes1.8集群中的kubelet配置取消了`KUBELET_API_SERVER`的配置而改用kubeconfig文件来定义master地址,所以请注释掉`KUBELET_API_SERVER`配置
``` bash
###
@ -200,6 +200,7 @@ KUBELET_ADDRESS="--address=172.20.0.113"
KUBELET_HOSTNAME="--hostname-override=172.20.0.113"
#
## location of the api-server
## COMMENT THIS ON KUBERNETES 1.8+
KUBELET_API_SERVER="--api-servers=http://172.20.0.113:8080"
#
## pod infrastructure container