Day 2
Change the machine config
Send a changed machine config to the running nodes, one node at a time.
Before you start
Section titled “Before you start”- The change is in git and reviewed.
- A person with
pk-metal-approvercan approve the rollout. That is you, if your site allows self-approval. If not, it is a second person. See Set up approval permissions. - All other rollouts of the cluster are complete. The operator proposes nothing new while one is open.
-
Edit the TalosCluster or the TalosNode. For example, add a patch.
Terminal window kubectl apply -f cluster.yamlThe operator renders a new config into a new Secret. No machine changes.
-
Wait for the drift check. It runs each 10 minutes on each
Readynode.Terminal window kubectl get talosnodesThe column
INSYNCshowsFalsefor the nodes that differ. -
Terminal window pk-metal rollout listA rollout of the kind
Configis in the stateAwaitingApproval. -
Read the plan. It shows for each node if it reboots.
Terminal window pk-metal rollout show prod-config-5e6f7a8b -
Approve the plan. If your site forbids self-approval, ask a second person to approve it.
Terminal window pk-metal rollout approve prod-config-5e6f7a8b -
After the first node, examine it. Then resume the rollout.
Terminal window pk-metal rollout resume prod-config-5e6f7a8b
Verify
Section titled “Verify”- Each TalosNode has
ConfigInSync=True. pk-metal rollout show <rollout>showsComplete=True.
Roll back
Section titled “Roll back”Revert the change in git and apply it. The operator proposes a new Config rollout back to the old config.
If it fails
Section titled “If it fails”| What you see | Go to |
|---|---|
No rollout appears, ConfigInSync is Unknown |
The dry run failed. The message on DriftUnknown says why. |
PlanChanged |
Rollout paused or plan changed |
| A node fails | Operation failed |
Related
Section titled “Related”- TalosRollout, TalosApplyConfig, pk-metal rollout
- Talos rendering, Day-2 change
- A change that you make with
talosctlby hand is drift too. The nextConfigrollout undoes it.