In diesem Thema wird erläutert, wie Sie einen benutzerdefinierten Kubernetes-Namespace für cert-manager angeben.
In den meisten Fällen wird cert-manager im Namespace cert-manager ausgeführt. Bei einigen Nutzern können Unternehmensrichtlinien die Erstellung neuer Kubernetes-Namespaces einschränken oder es kann erforderlich sein, dass cert-manager in einem anderen Namespace ausgeführt wird, zum Beispiel kube-system.
Benutzerdefinierten Namespace für cert-manager angeben
Wenden Sie die Namespace-Änderung mit apigeectl init an:
apigeectl init -f path-to-overrides.yaml
Prüfen Sie mit dem Befehl kubectl get pods, ob cert-manager im neuen Namespace korrekt installiert wurde:
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
Wenn cert-manager bereits ausgeführt wurde, löschen Sie die cert-manager-Instanz im cert-manager-Namespace. Folgen Sie dazu der Anleitung unter Dokumentation zur Deinstallation im Cert-Manager.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-03-12 (UTC)."],[[["This documentation guides you through specifying a custom Kubernetes namespace for cert-manager, which typically runs in the `cert-manager` namespace."],["Users with company policies restricting new namespace creation or requiring cert-manager to run in a specific namespace can follow these steps to adjust the cert-manager's location."],["Installing cert-manager in a custom namespace involves creating the namespace, installing cert-manager using modified manifests, and adding a `certManager` stanza to the overrides file."],["After configuration, the `apigeectl init` command applies the namespace change, and `kubectl get pods` verifies the successful installation in the new namespace."],["If cert-manager was previously running, it needs to be uninstalled from the default `cert-manager` namespace before completing the process."]]],[]]