This kustomize setup will Deploy cert-manager
to provision Certificates.
- Change directory into any environment directory, e.g.
tst
, or specify the directory when usingkustomize
e.g.kustomize build directory_here
- Run
kustomize build
to build theyaml
and either output into a file to apply later or pipe intokubectl
:- Output to a file:
kustomize build > cert-manager.yaml
- Pipe directly to
kubectl
:kustomize build | kubectl apply -f -
- Using
kubectl
's built inkustomize
:kubectl apply -k
- Please note that the version of
kustomize
that ships withkubectl
is likely to be behind the main release ofkustomize
and may not work
- Please note that the version of
- Output to a file:
- Check the operator is running with
kubectl -n cert-manager get pods,certificate,secret,issuer
## IMPORTANT: you MUST install the cert-manager CRDs **before** installing the
## cert-manager Helm chart
kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/release-0.9/deploy/manifests/00-crds.yaml
Sleep 15
## IMPORTANT: if the cert-manager namespace **already exists**, you MUST ensure
## it has an additional label on it in order for the deployment to succeed
kubectl create namespace cert-manager
kubectl label namespace cert-manager certmanager.k8s.io/disable-validation=true
## Add the Jetstack Helm repository
helm repo add jetstack https://charts.jetstack.io || true
helm repo update
## Install the cert-manager helm chart
helm install --name cert-manager --namespace cert-manager --version v0.9.1 jetstack/cert-manager