@@ -27,13 +27,13 @@ Follow the steps below to install [cert-manager](https://docs.cert-manager.io) o
27
27
#! /bin/bash
28
28
29
29
# Install the CustomResourceDefinition resources separately
30
- kubectl apply -f https://raw.githubusercontent. com/jetstack/ cert-manager/release-0.8/deploy/manifests/00- crds.yaml
30
+ kubectl apply -f https://github. com/cert-manager/cert-manager/releases/download/v1.10.1/cert-manager. crds.yaml
31
31
32
32
# Create the namespace for cert-manager
33
33
kubectl create namespace cert-manager
34
34
35
35
# Label the cert-manager namespace to disable resource validation
36
- kubectl label namespace cert-manager certmanager.k8s .io/disable-validation=true
36
+ kubectl label namespace cert-manager cert-manager .io/disable-validation=true
37
37
38
38
# Add the Jetstack Helm repository
39
39
helm repo add jetstack https://charts.jetstack.io
@@ -46,17 +46,9 @@ Follow the steps below to install [cert-manager](https://docs.cert-manager.io) o
46
46
helm install \
47
47
cert-manager jetstack/cert-manager \
48
48
--namespace cert-manager \
49
- --version v1.0.4 \
49
+ --version v1.10.1 \
50
50
# --set installCRDs=true
51
-
52
- # Helm v2
53
- helm install \
54
- --name cert-manager \
55
- --namespace cert-manager \
56
- --version v1.0.4 \
57
- jetstack/cert-manager \
58
- # --set installCRDs=true
59
-
51
+
60
52
# To automatically install and manage the CRDs as part of your Helm release,
61
53
# you must add the --set installCRDs=true flag to your Helm installation command.
62
54
```
@@ -81,12 +73,12 @@ Follow the steps below to install [cert-manager](https://docs.cert-manager.io) o
81
73
```bash
82
74
#!/bin/bash
83
75
kubectl apply -f - <<EOF
84
- apiVersion: certmanager.k8s. io/v1alpha1
76
+ apiVersion: cert-manager. io/v1
85
77
kind: ClusterIssuer
86
78
metadata:
87
- name: letsencrypt-staging
79
+ name: letsencrypt-staging
88
80
spec:
89
- acme:
81
+ acme:
90
82
# You must replace this email address with your own.
91
83
# Let' s Encrypt will use this to contact you about expiring
92
84
# certificates, and issues related to your account.
@@ -97,12 +89,15 @@ Follow the steps below to install [cert-manager](https://docs.cert-manager.io) o
97
89
# before moving to production
98
90
server: https://acme-staging-v02.api.letsencrypt.org/directory
99
91
privateKeySecretRef:
100
- # Secret resource used to store the account's private key.
101
- name: example-issuer-account-key
92
+ # Secret resource used to store the account's private key.
93
+ name: example-issuer-account-key
102
94
# Enable the HTTP-01 challenge provider
103
95
# you prove ownership of a domain by ensuring that a particular
104
96
# file is present at the domain
105
- http01: {}
97
+ solvers:
98
+ - http01:
99
+ ingress:
100
+ class: azure/application-gateway
106
101
EOF
107
102
```
108
103
@@ -127,7 +122,7 @@ Follow the steps below to install [cert-manager](https://docs.cert-manager.io) o
127
122
name: guestbook-letsencrypt-staging
128
123
annotations:
129
124
kubernetes.io/ingress.class: azure/application-gateway
130
- certmanager.k8s .io/cluster-issuer: letsencrypt-staging
125
+ cert-manager .io/cluster-issuer: letsencrypt-staging
131
126
spec:
132
127
tls:
133
128
- hosts:
0 commit comments