cert-manager 和 alidns-webhook 安装
2021-12-08
1分钟阅读时长
安装
helm repo add jetstack https://charts.jetstack.io
helm repo update
# kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.6.1/cert-manager.crds.yaml
wget https://hub.fastgit.org/jetstack/cert-manager/releases/download/v1.6.1/cert-manager.crds.yaml
kubectl apply -f cert-manager.crds.yaml
helm install \
cert-manager jetstack/cert-manager \
--namespace cert-manager \
--create-namespace \
--version v1.6.1
# alidns https://github.com/DEVmachine-fr/cert-manager-alidns-webhook
helm repo add cert-manager-alidns-webhook https://devmachine-fr.github.io/cert-manager-alidns-webhook
helm repo update
helm install --namespace cert-manager alidns-webhook cert-manager-alidns-webhook/alidns-webhook
helm template --namespace cert-manager alidns-webhook cert-manager-alidns-webhook/alidns-webhook
kubectl create secret generic alidns-secrets --from-literal="access-token=AccessKey ID" --from-literal="secret-key=AccessKey Secret"
卸载
kubectl get Issuers,ClusterIssuers,Certificates,CertificateRequests,Orders,Challenges --all-namespaces
helm --namespace cert-manager delete cert-manager
kubectl delete namespace cert-manager
kubectl delete -f cert-manager.crds.yaml
kubectl delete apiservice v1beta1.webhook.cert-manager.io