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-10 UTC."],[[["This guide details the process of installing and running cert-manager in a custom Kubernetes namespace, diverging from the default `cert-manager` namespace."],["Users can define a custom namespace for cert-manager using `kubectl` to create it and then modifying the installation manifests and the overrides file, instead of using the default namespace."],["The installation process involves editing the manifests, adding a `certManager` stanza to the overrides file with the desired namespace, and then using `helm` to apply the changes."],["After installation, it is essential to verify that cert-manager is running correctly in the new namespace by checking the pod status with `kubectl get pods`."],["If a previous instance of cert-manager existed, users will need to delete it from the default `cert-manager` namespace before installing in the new namespace."]]],[]]