Created
October 4, 2020 16:39
-
-
Save egeneralov/33e8a2d7a8ac9ecdba61cb68730d0f0f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -xe | |
kubectl create ns cert-manager | |
kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.0.2/cert-manager.crds.yaml | |
helm -n cert-manager upgrade --install cert-manager jetstack/cert-manager --version v1.0.2 --set installCRDs=false | |
cat << EOF | kubectl apply -n cert-manager -f - | |
apiVersion: cert-manager.io/v1 | |
kind: ClusterIssuer | |
metadata: | |
name: letsencrypt-prod | |
spec: | |
acme: | |
email: [email protected] | |
server: https://acme-v02.api.letsencrypt.org/directory | |
privateKeySecretRef: | |
name: eduard-generalov-net | |
solvers: | |
- http01: | |
ingress: | |
class: nginx | |
EOF | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment