Skip to content
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

Update cloudscale.ch installation instructions to include Puppet-managed LoadBalancers #96

Merged
merged 16 commits into from
Jul 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions docs/modules/ROOT/pages/how-tos/cloudscale/decommission.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Steps to remove an OpenShift 4 cluster from https://cloudscale.ch[cloudscale.ch]

. Export the following vars
+
[source,console]
[source,bash]
----
export CLOUDSCALE_TOKEN=<cloudscale-api-token> # From https://control.cloudscale.ch/user/api-tokens
export CLUSTER_ID=<lieutenant-cluster-id>
Expand All @@ -37,14 +37,17 @@ include::partial$setup_terraform.adoc[]

. Delete resources from clouscale.ch using Terraform
+
[source,console]
[source,bash]
----
# The first time it will fail
terraform destroy
# Destroy a second time to delete private networks
ccremer marked this conversation as resolved.
Show resolved Hide resolved
terraform destroy
----

. After all resources are deleted we need to remove the bucket
+
[source,console]
[source,bash]
----
# Use already exiting bucket user
response=$(curl -sH "Authorization: Bearer ${CLOUDSCALE_TOKEN}" \
Expand All @@ -61,15 +64,15 @@ mc config host add \
mc rb "${CLUSTER_ID}/${CLUSTER_ID}-bootstrap-ignition" --force

# delete image-registry object
mc rb "${CLUSTER_ID}/${CLUSTER_ID}-image-registry --force
mc rb "${CLUSTER_ID}/${CLUSTER_ID}-image-registry" --force

# delete cloudscale.ch user object
curl -i -H "Authorization: Bearer ${CLOUDSCALE_TOKEN}" -X DELETE $(echo $response | jq -r '.href')
----

. Delete vault entries:
+
[source,console]
[source,bash]
----
# Vault login
export VAULT_ADDR=https://vault-prod.syn.vshn.net
Expand Down
Loading