Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Exclua suas cargas de trabalho sem estado usando metodologias padrão de exclusão do Kubernetes.
Antes de começar
Para executar comandos em um cluster do Kubernetes, verifique se você tem os seguintes recursos:
Localize o nome do cluster do Kubernetes ou pergunte ao administrador da plataforma.
Faça login e gere o arquivo kubeconfig para o cluster do Kubernetes se você não tiver um.
Use o caminho kubeconfig do cluster do Kubernetes para substituir
KUBERNETES_CLUSTER_KUBECONFIG nestas instruções.
Para receber as permissões necessárias para excluir cargas de trabalho sem estado, peça ao administrador do IAM da organização para conceder a você o papel de administrador do namespace (namespace-admin) no namespace do projeto.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Informações incorretas ou exemplo de código","incorrectInformationOrSampleCode","thumb-down"],["Não contém as informações/amostras de que eu preciso","missingTheInformationSamplesINeed","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 2025-09-04 UTC."],[[["\u003cp\u003eThis guide explains how to delete stateless workloads in a Kubernetes cluster using standard deletion methods.\u003c/p\u003e\n"],["\u003cp\u003eYou will need the Kubernetes cluster name, kubeconfig file, and Namespace Admin role permissions to proceed.\u003c/p\u003e\n"],["\u003cp\u003eUse the \u003ccode\u003ekubectl delete deployment\u003c/code\u003e command, specifying the kubeconfig file, namespace, and deployment name to delete a specific deployment.\u003c/p\u003e\n"],["\u003cp\u003eEnsure that you replace placeholder values like \u003ccode\u003e<var translate="no">KUBERNETES_CLUSTER_KUBECONFIG</var>\u003c/code\u003e, \u003ccode\u003e<var translate="no">NAMESPACE</var>\u003c/code\u003e, and \u003ccode\u003e<var translate="no">DEPLOYMENT_NAME</var>\u003c/code\u003e with your specific details.\u003c/p\u003e\n"]]],[],null,["# Delete stateless workloads\n\nDelete your stateless workloads using standard Kubernetes deletion\nmethodologies.\n\nBefore you begin\n----------------\n\nTo run commands against a\n[Kubernetes cluster](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/clusters#cluster-architecture),\nmake sure you have the following resources:\n\n1. Locate the Kubernetes cluster name, or ask your Platform Administrator what\n the cluster name is.\n\n2. [Sign in and generate](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/iam/sign-in#zonal-cluster-kubeconfig)\n the kubeconfig file for the Kubernetes cluster if you don't have one.\n\n3. Use the kubeconfig path of the Kubernetes cluster to replace\n \u003cvar translate=\"no\"\u003eKUBERNETES_CLUSTER_KUBECONFIG\u003c/var\u003e in these instructions.\n\nTo get the required permissions to delete stateless workloads, ask your\nOrganization IAM Admin to grant you the Namespace Admin role (`namespace-admin`)\nin your project namespace.\n\nDelete a deployment\n-------------------\n\nTo delete a `Deployment` object, run: \n\n kubectl --kubeconfig \u003cvar translate=\"no\"\u003eKUBERNETES_CLUSTER_KUBECONFIG\u003c/var\u003e \\\n -n \u003cvar translate=\"no\"\u003eNAMESPACE\u003c/var\u003e \\\n delete deployment \u003cvar translate=\"no\"\u003eDEPLOYMENT_NAME\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eKUBERNETES_CLUSTER_KUBECONFIG\u003c/var\u003e: the kubeconfig file for the\n cluster.\n\n- \u003cvar translate=\"no\"\u003eNAMESPACE\u003c/var\u003e: the project namespace of the container\n workload.\n\n- \u003cvar translate=\"no\"\u003eDEPLOYMENT_NAME\u003c/var\u003e: the name of the deployment to\n delete."]]