mirror of https://github.com/easzlab/kubeasz.git
修改 completion 自动补全 (#1213)
parent
f892989228
commit
099e0686e2
|
@ -24,6 +24,13 @@
|
||||||
- runc
|
- runc
|
||||||
tags: upgrade
|
tags: upgrade
|
||||||
|
|
||||||
|
- name: 添加 crictl 自动补全
|
||||||
|
lineinfile:
|
||||||
|
dest: ~/.bashrc
|
||||||
|
state: present
|
||||||
|
regexp: 'crictl completion'
|
||||||
|
line: 'source <(crictl completion bash) # generated by kubeasz'
|
||||||
|
|
||||||
- name: 创建 containerd 配置文件
|
- name: 创建 containerd 配置文件
|
||||||
template: src=config.toml.j2 dest=/etc/containerd/config.toml
|
template: src=config.toml.j2 dest=/etc/containerd/config.toml
|
||||||
tags: upgrade
|
tags: upgrade
|
||||||
|
|
|
@ -15,6 +15,13 @@
|
||||||
- loopback
|
- loopback
|
||||||
tags: upgrade_k8s
|
tags: upgrade_k8s
|
||||||
|
|
||||||
|
- name: 添加 kubectl 自动补全
|
||||||
|
lineinfile:
|
||||||
|
dest: ~/.bashrc
|
||||||
|
state: present
|
||||||
|
regexp: 'kubectl completion'
|
||||||
|
line: 'source <(kubectl completion bash) # generated by kubeasz'
|
||||||
|
|
||||||
##----------kubelet 配置部分--------------
|
##----------kubelet 配置部分--------------
|
||||||
# 创建 kubelet 相关证书及 kubelet.kubeconfig
|
# 创建 kubelet 相关证书及 kubelet.kubeconfig
|
||||||
- import_tasks: create-kubelet-kubeconfig.yml
|
- import_tasks: create-kubelet-kubeconfig.yml
|
||||||
|
|
|
@ -46,13 +46,6 @@
|
||||||
line: "alias dk='docker exec -it kubeasz' # generated by kubeasz"
|
line: "alias dk='docker exec -it kubeasz' # generated by kubeasz"
|
||||||
when: "inventory_hostname == ansible_env.SSH_CLIENT.split(' ')[0]"
|
when: "inventory_hostname == ansible_env.SSH_CLIENT.split(' ')[0]"
|
||||||
|
|
||||||
- name: 添加 kubectl 自动补全
|
|
||||||
lineinfile:
|
|
||||||
dest: ~/.bashrc
|
|
||||||
state: present
|
|
||||||
regexp: 'kubectl completion'
|
|
||||||
line: 'source <(kubectl completion bash) # generated by kubeasz'
|
|
||||||
|
|
||||||
- name: 添加 local registry hosts 解析
|
- name: 添加 local registry hosts 解析
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/hosts
|
dest: /etc/hosts
|
||||||
|
|
Loading…
Reference in New Issue