diff --git a/05-部署高可用master集群.md b/05-部署高可用master集群.md index f8a613be9..c1ab08159 100644 --- a/05-部署高可用master集群.md +++ b/05-部署高可用master集群.md @@ -55,7 +55,7 @@ $ tar -xzvf kubernetes-src.tar.gz 将二进制文件拷贝到指定路径 ``` bash -$ cp -r server/bin/{kube-apiserver,kube-controller-manager,kube-scheduler,kubectl,kube-proxy,kubelet} /root/local/bin/ +$ cp -r server/bin/{kube-apiserver,kube-controller-manager,kube-scheduler,kubectl,kube-proxy,kubelet} /usr/local/bin/ ``` ## 配置和启动 kube-apiserver @@ -74,7 +74,7 @@ After=etcd.service [Service] EnvironmentFile=-/etc/kubernetes/config EnvironmentFile=-/etc/kubernetes/apiserver -ExecStart=/usr/bin/kube-apiserver \ +ExecStart=/usr/local/bin/kube-apiserver \ $KUBE_LOGTOSTDERR \ $KUBE_LOG_LEVEL \ $KUBE_ETCD_SERVERS \ @@ -190,7 +190,7 @@ Documentation=https://github.com/GoogleCloudPlatform/kubernetes [Service] EnvironmentFile=-/etc/kubernetes/config EnvironmentFile=-/etc/kubernetes/controller-manager -ExecStart=/usr/bin/kube-controller-manager \ +ExecStart=/usr/local/bin/kube-controller-manager \ $KUBE_LOGTOSTDERR \ $KUBE_LOG_LEVEL \ $KUBE_MASTER \ @@ -245,7 +245,7 @@ $ systemctl start kube-controller-manager **创建 kube-scheduler的serivce配置文件** -文件路径`/usr/lib/systemd/system/kube-scheduler.serivce`。 +文件路径`/usr/lib/systemd/system/kube-scheduler.service`。 ```ini [Unit] @@ -255,7 +255,7 @@ Documentation=https://github.com/GoogleCloudPlatform/kubernetes [Service] EnvironmentFile=-/etc/kubernetes/config EnvironmentFile=-/etc/kubernetes/scheduler -ExecStart=/usr/bin/kube-scheduler \ +ExecStart=/usr/local/bin/kube-scheduler \ $KUBE_LOGTOSTDERR \ $KUBE_LOG_LEVEL \ $KUBE_MASTER \ diff --git a/06-部署node节点.md b/06-部署node节点.md index 6e85a3bb8..a8e6d4c0e 100644 --- a/06-部署node节点.md +++ b/06-部署node节点.md @@ -219,7 +219,7 @@ $ cp -r ./server/bin/{kube-proxy,kubelet} /usr/bin/ ### 创建 kubelet 的service配置文件 -文件位置`/usr/lib/systemd/system/kubelet.serivce`。 +文件位置`/usr/lib/systemd/system/kubelet.service`。 ```ini [Unit] @@ -232,7 +232,7 @@ Requires=docker.service WorkingDirectory=/var/lib/kubelet EnvironmentFile=-/etc/kubernetes/config EnvironmentFile=-/etc/kubernetes/kubelet -ExecStart=/usr/bin/kubelet \ +ExecStart=/usr/local/bin/kubelet \ $KUBE_LOGTOSTDERR \ $KUBE_LOG_LEVEL \ $KUBELET_API_SERVER \