CM

k8s CM&SSL

Cert manager & SSL enablement in k8s

Posted by Wilson on September 27, 2023

Ingress Introduction

cert-manager adds certificates and certificate issuers as resource types in Kubernetes clusters, and simplifies the process of obtaining, renewing and using those certificates.

Step 1: Install CM

kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.13.0/cert-manager.yaml
  • after installation, run below to check status
k get all -n cert-manager

Step 2: Sample for enable ingress resource with SSL

https://raw.githubusercontent.com/saiyam1814/kube-certs/main/deploy/deploy.yaml

Step 3: Copy SSL secret to other namespace if required

copy secret from default to argocd namesapce
 
kubectl get secret argocd-tls-secret --namespace=default -o yaml  | sed 's/namespace: .*/namespace: argocd/' | kubectl apply -f -

More: https://www.youtube.com/watch?v=KAa2l0oycOk