Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgao1983 committed Feb 25, 2018
1 parent cd9d700 commit dfbfaad
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 26 deletions.
3 changes: 0 additions & 3 deletions docs/00-集群规划和基础参数设定.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@
MASTER_IP="192.168.1.10"
KUBE_APISERVER="https://192.168.1.10:8443"

#pause镜像地址
POD_INFRA_CONTAINER_IMAGE=mirrorgooglecontainers/pause-amd64:3.0

#TLS Bootstrapping 使用的 Token,使用 head -c 16 /dev/urandom | od -An -t x | tr -d ' ' 生成
BOOTSTRAP_TOKEN="c30302226d4b810e08731702d3890f50"

Expand Down
2 changes: 1 addition & 1 deletion docs/06-安装kube-node节点.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ WorkingDirectory=/var/lib/kubelet
ExecStart={{ bin_dir }}/kubelet \
--address={{ NODE_IP }} \
--hostname-override={{ NODE_IP }} \
--pod-infra-container-image={{ POD_INFRA_CONTAINER_IMAGE }} \
--pod-infra-container-image=mirrorgooglecontainers/pause-amd64:3.0 \
--experimental-bootstrap-kubeconfig=/etc/kubernetes/bootstrap.kubeconfig \
--kubeconfig=/etc/kubernetes/kubelet.kubeconfig \
--cert-dir={{ ca_dir }} \
Expand Down
9 changes: 2 additions & 7 deletions example/hosts.allinone.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
[deploy]
192.168.1.1

# etcd集群请提供如下NODE_NAME、NODE_IP变量
# 请注意etcd集群必须是1,3,5,7...奇数个节点
# etcd集群请提供如下NODE_NAME、NODE_IP变量,注意etcd集群必须是1,3,5,7...奇数个节点
[etcd]
192.168.1.1 NODE_NAME=etcd1 NODE_IP="192.168.1.1"

[kube-master]
192.168.1.1 NODE_IP="192.168.1.1"

#确保node节点有变量NODE_ID=node1
[kube-node]
192.168.1.1 NODE_ID=node1 NODE_IP="192.168.1.1"

Expand All @@ -34,14 +32,11 @@ MASTER_IP="192.168.1.1"
#集群 APISERVER
KUBE_APISERVER="https://192.168.1.1:6443"

#pause镜像地址
POD_INFRA_CONTAINER_IMAGE=mirrorgooglecontainers/pause-amd64:3.0

#TLS Bootstrapping 使用的 Token,使用 head -c 16 /dev/urandom | od -An -t x | tr -d ' ' 生成
BOOTSTRAP_TOKEN="d18f94b5fa585c7123f56803d925d2e7"

# 集群网络插件,目前支持calico和flannel
CLUSTER_NETWORK="calico"
CLUSTER_NETWORK="flannel"

# 部分calico相关配置,更全配置可以去roles/calico/templates/calico.yaml.j2自定义
# 设置 CALICO_IPV4POOL_IPIP=“off”,可以提高网络性能,条件限制详见 05.安装calico网络组件.md
Expand Down
9 changes: 2 additions & 7 deletions example/hosts.m-masters.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
[deploy]
192.168.1.1

# etcd集群请提供如下NODE_NAME、NODE_IP变量
# 请注意etcd集群必须是1,3,5,7...奇数个节点
# etcd集群请提供如下NODE_NAME、NODE_IP变量,注意etcd集群必须是1,3,5,7...奇数个节点
[etcd]
192.168.1.1 NODE_NAME=etcd1 NODE_IP="192.168.1.1"
192.168.1.2 NODE_NAME=etcd2 NODE_IP="192.168.1.2"
Expand All @@ -24,7 +23,6 @@ LB_EP2="192.168.1.2:6443" # api-server 实际成员地址端口
MASTER_IP="192.168.1.10" # api-server 虚地址
MASTER_PORT="8443" # api-server 服务端口

#确保node节点有变量NODE_ID=node1
[kube-node]
192.168.1.2 NODE_ID=node1 NODE_IP="192.168.1.2"
192.168.1.3 NODE_ID=node2 NODE_IP="192.168.1.3"
Expand All @@ -49,14 +47,11 @@ kube-master
MASTER_IP="192.168.1.10"
KUBE_APISERVER="https://192.168.1.10:8443"

#pause镜像地址
POD_INFRA_CONTAINER_IMAGE=mirrorgooglecontainers/pause-amd64:3.0

#TLS Bootstrapping 使用的 Token,使用 head -c 16 /dev/urandom | od -An -t x | tr -d ' ' 生成
BOOTSTRAP_TOKEN="c30302226d4b810e08731702d3890f50"

# 集群网络插件,目前支持calico和flannel
CLUSTER_NETWORK="calico"
CLUSTER_NETWORK="flannel"

# 部分calico相关配置,更全配置可以去roles/calico/templates/calico.yaml.j2自定义
# 设置 CALICO_IPV4POOL_IPIP=“off”,可以提高网络性能,条件限制详见 05.安装calico网络组件.md
Expand Down
9 changes: 2 additions & 7 deletions example/hosts.s-master.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
[deploy]
192.168.1.1

# etcd集群请提供如下NODE_NAME、NODE_IP变量
# 请注意etcd集群必须是1,3,5,7...奇数个节点
# etcd集群请提供如下NODE_NAME、NODE_IP变量,请注意etcd集群必须是1,3,5,7...奇数个节点
[etcd]
192.168.1.1 NODE_NAME=etcd1 NODE_IP="192.168.1.1"
192.168.1.2 NODE_NAME=etcd2 NODE_IP="192.168.1.2"
Expand All @@ -12,7 +11,6 @@
[kube-master]
192.168.1.1 NODE_IP="192.168.1.1"

#确保node节点有变量NODE_ID=node1
[kube-node]
192.168.1.1 NODE_ID=node1 NODE_IP="192.168.1.1"
192.168.1.2 NODE_ID=node2 NODE_IP="192.168.1.2"
Expand All @@ -38,14 +36,11 @@ MASTER_IP="192.168.1.1"
#集群 APISERVER
KUBE_APISERVER="https://192.168.1.1:6443"

#pause镜像地址
POD_INFRA_CONTAINER_IMAGE=mirrorgooglecontainers/pause-amd64:3.0

#TLS Bootstrapping 使用的 Token,使用 head -c 16 /dev/urandom | od -An -t x | tr -d ' ' 生成
BOOTSTRAP_TOKEN="d18f94b5fa585c7123f56803d925d2e7"

# 集群网络插件,目前支持calico和flannel
CLUSTER_NETWORK="calico"
CLUSTER_NETWORK="flannel"

# 部分calico相关配置,更全配置可以去roles/calico/templates/calico.yaml.j2自定义
# 设置 CALICO_IPV4POOL_IPIP=“off”,可以提高网络性能,条件限制详见 05.安装calico网络组件.md
Expand Down
2 changes: 1 addition & 1 deletion roles/kube-node/templates/kubelet.service.j2
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ WorkingDirectory=/var/lib/kubelet
ExecStart={{ bin_dir }}/kubelet \
--address={{ NODE_IP }} \
--hostname-override={{ NODE_IP }} \
--pod-infra-container-image={{ POD_INFRA_CONTAINER_IMAGE }} \
--pod-infra-container-image=mirrorgooglecontainers/pause-amd64:3.0 \
--experimental-bootstrap-kubeconfig=/etc/kubernetes/bootstrap.kubeconfig \
--kubeconfig=/etc/kubernetes/kubelet.kubeconfig \
--cert-dir={{ ca_dir }} \
Expand Down

0 comments on commit dfbfaad

Please sign in to comment.