Delete your stateless workloads using standard Kubernetes deletion methodologies.
Before you begin
To run commands against a user cluster, use the gdcloud CLI to access its kubeconfig file.
Ensure that you have downloaded, installed, and configured the gdcloud CLI.
gdcloud auth loginto log in to the org admin cluster.
Locate the user cluster name, or ask your Platform Administrator what the cluster name is.
To generate the kubeconfig file of the user cluster, run:
gdcloud clusters get-credentials USER_CLUSTER_NAME
Record the path to the generated file, such as
Use the path to replace
USER_CLUSTER_KUBECONFIGin these instructions.
To get the required permissions to delete stateless workloads, ask your Organization IAM Admin to grant you the Namespace Admin role.
Delete a deployment
To delete a
Deployment object, run:
kubectl --kubeconfig USER_CLUSTER_KUBECONFIG \
delete deployment DEPLOYMENT_NAME
Replace the following:
USER_CLUSTER_KUBECONFIG: the kubeconfig file for the user cluster.
DEPLOYMENT_NAME: the name of the deployment to delete.