Created
June 4, 2026 15:56
-
-
Save ryandotclair/d448d9f57fe446d7562677fbbec2c82a to your computer and use it in GitHub Desktop.
Clean Up Disconnected PC K8S
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export URL="https://${PCIPADDRESS}:9440/karbon" | |
| export PCADMIN="username" | |
| export PCPASSWD='supersecretpassword' | |
| export CLUSTER_UUID="uuid of cluster to remove" | |
| export APIURL="/v1-alpha.1/k8s/cluster-registrations/${CLUSTER_UUID}?force=true" | |
| curl -s -k -u "$PCADMIN:$PCPASSWD" --header 'accept: application/json' --request DELETE ${URL}${APIURL} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment