I’m trying to follow the following instructions to...
# general
s
I’m trying to follow the following instructions to install cert-manager in an aks cluster: https://docs.microsoft.com/en-us/azure/aks/ingress-tls. After creating a namespace for the cert manager, the next instruction is:
kubectl label namespace cert-manager <http://certmanager.k8s.io/disable-validation=true|certmanager.k8s.io/disable-validation=true>
Is there a supported way to do this in the pulumi python api?
b
sure you just specify it as a label when you do new namespace
Copy code
namespace = new kubernetes.core.v1.Namespace("cert-manager", {
            metadata: {
                name: "cert-manager",
                labels: { "<http://certmanager.k8s.io/disable-validation|certmanager.k8s.io/disable-validation>": "true" }
            }
        }, { provider: provider });
Copy code
// install the custom resources required by the chart
    new kubernetes.yaml.ConfigFile(
        "<https://raw.githubusercontent.com/jetstack/cert-manager/release-0.7/deploy/manifests/00-crds.yaml>",
        undefined,
        { providers: { kubernetes: provider } }
    );

    // deploy the cert-manager helm chart
    const certManager = new helm.v2.Chart("cert-manager", {
        namespace: namespaceName,
        chart: "jetstack/cert-manager",
        version: CertManagerChartVersion,
        values: {
            ingressShim: {
                defaultIssuerKind: "ClusterIssuer"
            }
        }
    }, { dependsOn: [ingress], providers: { kubernetes: provider } });
and thats the rest of what i use
s
Thanks, @better-rainbow-14549, I’ll try it out!
That worked great!