En este tema, se explica cómo especificar un espacio de nombres personalizado de Kubernetes para cert-manager.
En la mayoría de los casos, cert-manager se ejecuta en el espacio de nombres cert-manager. Algunos usuarios pueden tener políticas de la empresa que restrinjan la creación de espacios de nombres nuevos de Kubernetes o tener políticas que requieran que cert-manager se ejecute en un espacio de nombres diferente, por ejemplo, kube-system.
Especifica un espacio de nombres personalizado para cert-manager
Verifica que cert-manager se haya instalado de forma correcta en el espacio de nombres nuevo con el
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
Si cert-manager se ejecutaba antes, borra la instancia cert-manager en el espacio de nombres cert-manager mediante las instrucciones en Desinstalar en la documentación de cert-manager.
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-03-10 (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."]]],[]]