Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save ryandotclair/d448d9f57fe446d7562677fbbec2c82a to your computer and use it in GitHub Desktop.

Select an option

Save ryandotclair/d448d9f57fe446d7562677fbbec2c82a to your computer and use it in GitHub Desktop.
Clean Up Disconnected PC K8S
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