Commit 79bd2dd
Christian Handschuh
fix: download kubeconfig after nodes join the cluster
`tasks/main.yml` fetched `/etc/rancher/rke2/rke2.yaml` from
`groups[rke2_servers_group_name].0`, before `remaining_nodes.yml` ran.
But that file only exists once that host's rke2-server has actually
started, which is true for a fresh bootstrap (`first_server.yml`) but
not when the node at index 0 is instead rejoining an existing cluster -
in that case 'remaining_nodes.yml' is what starts rke2-server on it, and
it runs after the kubeconfig fetch, so the fetch fails.
Move the kubeconfig download after "Prepare and join remaining nodes of
the cluster" so it runs once the index-0 host has a running rke2-server
regardless of which path (bootstrap or join) it took.1 parent 0ef24b4 commit 79bd2dd
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | 73 | | |
80 | 74 | | |
81 | 75 | | |
82 | 76 | | |
83 | 77 | | |
84 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
0 commit comments