mirror of https://github.com/easzlab/kubeasz.git
minor fix
parent
b7a7eef235
commit
2f3f9d023d
|
@ -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'
|
||||
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -76,7 +76,7 @@ BASIC_AUTH_PASS="test1234"
|
|||
|
||||
# ---------附加参数--------------------
|
||||
#默认二进制文件目录
|
||||
bin_dir="/root/local/bin"
|
||||
bin_dir="/opt/kube/bin"
|
||||
|
||||
#证书目录
|
||||
ca_dir="/etc/kubernetes/ssl"
|
||||
|
|
|
@ -93,7 +93,7 @@ BASIC_AUTH_PASS="test1234"
|
|||
|
||||
# ---------附加参数--------------------
|
||||
#默认二进制文件目录
|
||||
bin_dir="/root/local/bin"
|
||||
bin_dir="/opt/kube/bin"
|
||||
|
||||
#证书目录
|
||||
ca_dir="/etc/kubernetes/ssl"
|
||||
|
|
|
@ -80,7 +80,7 @@ BASIC_AUTH_PASS="test1234"
|
|||
|
||||
# ---------附加参数--------------------
|
||||
#默认二进制文件目录
|
||||
bin_dir="/root/local/bin"
|
||||
bin_dir="/opt/kube/bin"
|
||||
|
||||
#证书目录
|
||||
ca_dir="/etc/kubernetes/ssl"
|
||||
|
|
|
@ -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)'
|
||||
|
|
Loading…
Reference in New Issue