固定node name用于解决修改hostname后删除node重启服务导致pod pending
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
dest: /var/lib/rancher/k3s/agent/images/
|
||||
|
||||
- name: "execute k3s install"
|
||||
shell: curl -sfL https://get.k3s.io | INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_SKIP_ENABLE=true INSTALL_K3S_BIN_DIR=/usr/bin sh -s - --flannel-backend=none
|
||||
shell: curl -sfL https://get.k3s.io | INSTALL_K3S_SKIP_DOWNLOAD=true INSTALL_K3S_SKIP_ENABLE=true INSTALL_K3S_BIN_DIR=/usr/bin sh -s - --flannel-backend=none --node-name=localhost
|
||||
|
||||
# - name: "enable k3s"
|
||||
# systemd:
|
||||
|
||||
Reference in New Issue
Block a user