固定node name用于解决修改hostname后删除node重启服务导致pod pending

This commit is contained in:
linxin
2023-06-05 14:15:42 +08:00
parent dfc1a831a8
commit f4dee3df7a

View File

@@ -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: