Created
April 10, 2022 10:32
-
-
Save AlexisDucastel/9180191bf258f9a83699397ca5b4f21f to your computer and use it in GitHub Desktop.
Commandes pour déployer cert-manager, nginx-ingress et Rancher
This file contains 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
helm repo add bitnami https://charts.bitnami.com/bitnami | |
kubectl create ns cert-manager | |
helm upgrade --install -n cert-manager cert-manager bitnami/cert-manager \ | |
--set global.cattle.url=https://rancher.lp.ibd.sh \ | |
--set installCRDs=true | |
kubectl apply -f - <<EOF | |
apiVersion: cert-manager.io/v1 | |
kind: ClusterIssuer | |
metadata: | |
name: letsencrypt | |
spec: | |
acme: | |
email: [email protected] | |
privateKeySecretRef: | |
name: letsencrypt-cluster-issuer | |
server: https://acme-v02.api.letsencrypt.org/directory | |
solvers: | |
- http01: | |
ingress: | |
class: nginx | |
EOF | |
kubectl create ns nginx-ingress | |
helm upgrade --install -n nginx-ingress nginx-ingress bitnami/nginx-ingress-controller \ | |
--namespace nginx-ingress \ | |
--set global.cattle.url=https://rancher.lp.ibd.sh \ | |
--set publishService.enabled=true \ | |
--set service.externalTrafficPolicy=Local \ | |
--set watchIngressWithoutClass=true | |
helm repo add rancher-stable https://releases.rancher.com/server-charts/stable | |
kubectl create ns cattle-system | |
helm upgrade --install -n cattle-system rancher rancher-stable/rancher \ | |
--set global.cattle.url=https://rancher.lp.ibd.sh \ | |
--set hostname=rancher.lp.ibd.sh \ | |
--set bootstrapPassword=Z1GkA0Bn64F6sxzyIT6wv6 \ | |
--set ingress.tls.source=letsEncrypt \ | |
--set [email protected] \ | |
--set letsEncrypt.ingress.class=nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment