init
This commit is contained in:
25
Cluster/3-init-certmanager.sh
Executable file
25
Cluster/3-init-certmanager.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/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
|
||||
|
||||
kubectl apply -f certmanager/orc-letsencrypt-issuer.yaml
|
Reference in New Issue
Block a user