-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How-To: Adopt worker nodes with the cloudscale Machine API Provider #362
base: master
Are you sure you want to change the base?
Conversation
docs/modules/ROOT/pages/how-tos/cloudscale/provider-adopt-worker-nodes.adoc
Outdated
Show resolved
Hide resolved
Co-authored-by: Simon Gerber <[email protected]>
yq eval -i '.parameters.machine_api_provider_cloudscale.secrets["cloudscale-user-data"].stringData.ignitionCA = "${openshift4_terraform:terraform_variables:ignition_ca}"' \ | ||
${CLUSTER_ID}.yml | ||
|
||
git commit -m "Allow adoption of worker nodes" "${CLUSTER_ID}.yml" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A git push appears to be missing here.
+ | ||
[source,bash] | ||
---- | ||
terraform output -raw worker-machines_yml | yq -P > worker-machines.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on my machine Terraform prints a warning which then gets included in the yaml (because they have never heard of stderr):
└─» terraform output -raw worker-machines_yml > foo.yml
└─» cat foo.yml
There are some problems with the CLI configuration:
╷
│ Warning: Unable to open CLI configuration file
│
│ The CLI configuration file at "/root/.terraformrc" does not exist.
╵
"apiVersion": "v1"
"items": []
"kind": "List"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ended up using this command:
terraform output -raw worker-machineset_yml | grep -vP '^(│|╵|╷|There are some problems with the CLI configuration)' | yq -P > worker-machineset.yml
head worker-machineset.yml
kubectl apply -f worker-machineset.yml
No description provided.