Skip to content

Instantly share code, notes, and snippets.

@egeneralov
Created October 4, 2020 16:39
Show Gist options
  • Save egeneralov/33e8a2d7a8ac9ecdba61cb68730d0f0f to your computer and use it in GitHub Desktop.
Save egeneralov/33e8a2d7a8ac9ecdba61cb68730d0f0f to your computer and use it in GitHub Desktop.
#!/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