minor fix

pull/182/head
gjmzj 2018-05-06 09:08:09 +08:00
parent b7a7eef235
commit 2f3f9d023d
6 changed files with 8 additions and 8 deletions

View File

@ -141,13 +141,13 @@
- name: 清理自动生成的PATH
lineinfile:
dest: /etc/profile
dest: ~/.bashrc
state: absent
regexp: 'kubeasz'
- name: 清理 kubectl 命令自动补全
lineinfile:
dest: /etc/profile
dest: ~/.bashrc
state: absent
regexp: 'kubectl completion'

View File

@ -111,7 +111,7 @@ systemctl daemon-reload && systemctl enable etcd && systemctl start etcd
# 根据hosts中配置设置shell变量 $NODE_IPS
export NODE_IPS="192.168.1.1 192.168.1.2 192.168.1.3"
$ for ip in ${NODE_IPS}; do
ETCDCTL_API=3 /root/local/bin/etcdctl \
ETCDCTL_API=3 etcdctl \
--endpoints=https://${ip}:2379 \
--cacert=/etc/kubernetes/ssl/ca.pem \
--cert=/etc/etcd/ssl/etcd.pem \

View File

@ -76,7 +76,7 @@ BASIC_AUTH_PASS="test1234"
# ---------附加参数--------------------
#默认二进制文件目录
bin_dir="/root/local/bin"
bin_dir="/opt/kube/bin"
#证书目录
ca_dir="/etc/kubernetes/ssl"

View File

@ -93,7 +93,7 @@ BASIC_AUTH_PASS="test1234"
# ---------附加参数--------------------
#默认二进制文件目录
bin_dir="/root/local/bin"
bin_dir="/opt/kube/bin"
#证书目录
ca_dir="/etc/kubernetes/ssl"

View File

@ -80,7 +80,7 @@ BASIC_AUTH_PASS="test1234"
# ---------附加参数--------------------
#默认二进制文件目录
bin_dir="/root/local/bin"
bin_dir="/opt/kube/bin"
#证书目录
ca_dir="/etc/kubernetes/ssl"

View File

@ -8,7 +8,7 @@
- name: 写入环境变量$PATH
lineinfile:
dest: /etc/profile
dest: ~/.bashrc
state: present
regexp: 'kubeasz'
line: 'export PATH={{ bin_dir }}:$PATH # generated by kubeasz'
@ -86,7 +86,7 @@
- name: 添加 kubectl 命令自动补全
lineinfile:
dest: /etc/profile
dest: ~/.bashrc
state: present
regexp: 'kubectl completion'
line: 'source <(kubectl completion bash)'