Neste tópico, explicamos como especificar um namespace personalizado do Kubernetes para o
cert-manager.
Na maioria dos casos, o cert-manager é executado no namespace cert-manager. Alguns usuários podem ter
políticas da empresa que restringem a criação de novos namespaces do Kubernetes ou algumas políticas que exigem
que o cert-manager seja executado em um namespace diferente, por exemplo, kube-system.
Especificar um namespace personalizado para o cert-manager
Verifique se o cert-manager está instalado corretamente no novo namespace com o
comando kubectl get pods:
kubectl get pods -n new-cert-manager-namespace
NAME READY STATUS RESTARTS AGE
cert-manager-1234567-abcde 1/1 Running 0 21s
cert-manager-cainjector-23456789a-bcdef 1/1 Running 0 22s
cert-manager-webhook-3456789ab-cdef0 1/1 Running 0 20s
Se o cert-manager estava em execução anteriormente, exclua a instância de cert-manager no
namespace cert-manager seguindo as instruções em
Desinstalar
na documentação do cert-manager.
[[["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-03-27 UTC."],[[["This guide explains how to install and run cert-manager in a custom Kubernetes namespace instead of the default `cert-manager` namespace."],["Users might need to run cert-manager in a different namespace due to company policies or restrictions on creating new namespaces."],["The process involves creating the custom namespace, editing the installation manifests to specify the new namespace, and applying these changes via the overrides file."],["After applying the changes, you can verify the installation in the new namespace by using the `kubectl get pods` command, followed by deleting the original instance if needed."],["The documentation directs users to the official cert-manager documentation for installation and uninstallation instructions, if needed."]]],[]]