Skip to content
Closed
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
18 changes: 16 additions & 2 deletions docs/modules/ROOT/pages/how-tos/cloudscale/decommission.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,13 @@ kubectl delete svc --field-selector spec.type=LoadBalancer -A
kubectl delete loadbalancers -A --all
----

. Disable autoscaling
+
[source,bash]
----
kubectl delete machineautoscaler -A --all
----

. Delete all PVs
+
[source,bash]
Expand Down Expand Up @@ -124,6 +131,13 @@ terraform destroy
popd
----

. Delete remaining cloudscale server groups
+
[source,bash]
----
TODO -- we don't have anything to identify server groups by cluster
----

. After all resources are deleted we need to remove the buckets
+
[source,bash]
Expand All @@ -134,7 +148,7 @@ response=$(curl -sH "Authorization: Bearer ${CLOUDSCALE_API_TOKEN}" \
jq -e ".[] | select(.display_name == \"${CLUSTER_ID}\")")

# configure minio client to use the bucket
mc config host add \
mc alias set \
"${CLUSTER_ID}" "https://objects.${REGION}.cloudscale.ch" \
$(echo $response | jq -r '.keys[0].access_key') \
$(echo $response | jq -r '.keys[0].secret_key')
Expand Down Expand Up @@ -162,7 +176,7 @@ At this point in the decommissioning process, you'll have to extract the Restic
[source,bash]
----
# configure minio client to use the bucket
mc config host add \
mc alias set \
"${CLUSTER_ID}_backup" "https://objects.${BACKUP_REGION}.cloudscale.ch" \
$(echo $response | jq -r '.keys[0].access_key') \
$(echo $response | jq -r '.keys[0].secret_key')
Expand Down
1 change: 1 addition & 0 deletions docs/modules/ROOT/partials/cloudscale/prerequisites.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ The following CLI utilities need to be available locally:
* `jq`
* `yq` https://mikefarah.gitbook.io/yq[yq YAML processor] (version 4 or higher)
* macOS: `gdate` from GNU coreutils, `brew install coreutils`
* `mc` TBD