Files
Kubernetes-deploy/Cluster/3-init-certmanager.sh
2021-05-20 14:20:41 +07:00

27 lines
709 B
Bash
Executable File

#!/bin/bash
# Install the CustomResourceDefinition resources separately
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.3.1/cert-manager.crds.yaml
# Create the namespace for cert-manager
kubectl create namespace cert-manager
# Add the Jetstack Helm repository
helm repo add cert-manager https://charts.jetstack.io
# Update your local Helm chart repository cache
helm repo update
helm upgrade --install \
cert-manager \
cert-manager/cert-manager \
--namespace cert-manager \
--version 1.3.1
kubectl -n cert-manager rollout status deploy/cert-manager
sleep 5
# Add ACME issuer - FIX email in file BEFORE!!!
kubectl apply -f certmanager/orc-letsencrypt-issuer.yaml