Skip to content

Instantly share code, notes, and snippets.

@ikurni
Created October 5, 2020 14:43
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save ikurni/067ea20449588008de4e19a07f0de5f4 to your computer and use it in GitHub Desktop.
Save ikurni/067ea20449588008de4e19a07f0de5f4 to your computer and use it in GitHub Desktop.
How to force openshift MCP to update machine config
### Create file called machine-config-daemon-force in /run ###
ssh core@hostname.local sudo touch /run/machine-config-daemon-force
### Edit node annotations ###
oc edit node <node-name>
### Check Annotations, change like below sample ###
machineconfiguration.openshift.io/currentConfig: rendered-worker-ab4a1e7216bf3da2a5203f09c871b456
machineconfiguration.openshift.io/desiredConfig: rendered-worker-ab4a1e7216bf3da2a5203f09c871b456
machineconfiguration.openshift.io/reason: ""
machineconfiguration.openshift.io/ssh: accessed
machineconfiguration.openshift.io/state: Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment