K3s: Cert Manager

Install cert-manager

#1. Add Helm repository.

helm repo add jetstack https://charts.jetstack.io

#2. Update Helm repository.

helm repo update

#3. (Option 1) Install Cert Manager CRD. At this moment, the latest version is v1.9.1. Click here to get the latest release.

kubectl apply -f https://github.com/cert-manager/cert-manager/releases/download/v1.9.1/cert-manager.crds.yaml

#4. (Option 2) Install Cert Manager via Helm. At this moment, the latest version is v1.9.1. Click here to get the latest release.

helm install \
  cert-manager jetstack/cert-manager \
  --namespace cert-manager \
  --create-namespace \
  --version v1.9.1

Additional: Install cmctl.

#1. Go to cmctl Github release page: Releases · cert-manager/cert-manager (github.com)

#2. Download, extract and install.

# Download
wget https://github.com/cert-manager/cert-manager/releases/download/v1.9.1/cmctl-linux-amd64.tar.gz

# Extract
tar -zxvf cmctl-linux-amd64.tar.gz

# Install
mv cmctl /usr/local/bin/

#3. Test it.

cmctl check api

# K3s
cmctl check api --kubeconfig /etc/rancher/k3s/k3s.yaml

# => The cert-manager API is ready

References:


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *