The little apprentice

Curiosities over computing

Home Blog Wordpress About me

Deploy Cert-Manager in Kubernetes.

For have to deploy of Cert-Manager (successor of kube-lego) we have that to follow the next steps for that your installation is correct.

wget
https://raw.githubusercontent.com/jetstack/cert-manager/release-0.7/docs/tut
orials/acme/quick-start/example/production-issuer.yaml

-------------------------

nano​ ​ production-issuer.yaml

   apiVersion: certmanager.k8s.io/v1alpha1
   kind: Issuer
   metadata:
     name: letsencrypt-prod
   spec:
     acme:
       # The ACME server URL
       server: https://acme-v02.api.letsencrypt.org/directory
       # Email address used for ACME registration
       email: juanjose.lopez@guadaltech.es
       # Name of a secret used to store the ACME account private key
       privateKeySecretRef:
         name: letsencrypt-prod
       # Enable the HTTP-01 challenge provider
       http01: {}

-------------------------

kubectl create -f production-issuer.yaml -n "namespace-desired"
wget https://raw.githubusercontent.com/jetstack/cert-manager/release-0.7/docs/tutorials/acme/quick-start/example/staging-issuer.yaml

-------------------------

nano staging-issuer.yaml

   apiVersion: certmanager.k8s.io/v1alpha1
   kind: Issuer
   metadata:
     name: letsencrypt-staging
   spec:
     acme:
       # The ACME server URL
       server: https://acme-staging-v02.api.letsencrypt.org/directory
       # Email address used for ACME registration
       email: soporte@guadaltech.es
       # Name of a secret used to store the ACME account private key
       privateKeySecretRef:
         name: letsencrypt-staging
       # Enable the HTTP-01 challenge provider
       http01: {}

-------------------------

kubectl create -f staging-issuer.yaml -n "namespace-desired"

Alt Text

Alt Text

If we do not have to deploy the nginx-ingress, the following command allow us to deploy the basic nginx-ingress being compatible with the cert-manager.

helm install --name ingress-nginx --namespace ingress-nginx stable/nginx-ingress