fix: talosctl apply-config mode is staged
This commit is contained in:
1 parent
e895ba359f
commit
f7274e4ccc
1 file changed
+2
-4
@@ -27,12 +27,10 @@ tasks:
|
|||||||
apply-config:
|
apply-config:
|
||||||
desc: Apply Talos configuration to a node
|
desc: Apply Talos configuration to a node
|
||||||
cmds:
|
cmds:
|
||||||
- '{{if eq .MODE "reboot"}}kubectl drain {{.HOSTNAME}} --ignore-daemonsets --delete-emptydir-data --force{{end}}'
|
- talosctl apply-config --mode=staged --nodes {{.HOSTNAME}} --file {{.TALHELPER_CLUSTER_DIR}}/{{.CLUSTER_NAME}}-{{.HOSTNAME}}.yaml
|
||||||
- talosctl apply-config --mode={{.MODE}} --nodes {{.HOSTNAME}} --file {{.TALHELPER_CLUSTER_DIR}}/{{.CLUSTER_NAME}}-{{.HOSTNAME}}.yaml
|
- talosctl --nodes {{.HOSTNAME}} reboot
|
||||||
- talosctl --nodes {{.HOSTNAME}} health --wait-timeout=10m --server=false
|
- talosctl --nodes {{.HOSTNAME}} health --wait-timeout=10m --server=false
|
||||||
- '{{if eq .MODE "reboot"}}kubectl uncordon {{.HOSTNAME}}{{end}}'
|
|
||||||
vars:
|
vars:
|
||||||
MODE: '{{.MODE | default "no-reboot"}}'
|
|
||||||
CLUSTER_NAME:
|
CLUSTER_NAME:
|
||||||
sh: yq '.clusterName' {{.TALHELPER_CONFIG_FILE}}
|
sh: yq '.clusterName' {{.TALHELPER_CONFIG_FILE}}
|
||||||
requires:
|
requires:
|
||||||
|
|||||||
Reference in new issue
Block a user