Skip to content

Commit ee66144

Browse files
authored
Merge pull request #103594 from BobHamburg/patch-1
Update ingress-controller-letsencrypt-certificate-application-gateway.md
2 parents c60532f + 0c7893a commit ee66144

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

articles/application-gateway/ingress-controller-letsencrypt-certificate-application-gateway.md

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ Follow the steps below to install [cert-manager](https://docs.cert-manager.io) o
2727
#!/bin/bash
2828

2929
# 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
3131

3232
# Create the namespace for cert-manager
3333
kubectl create namespace cert-manager
3434

3535
# 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
3737

3838
# Add the Jetstack Helm repository
3939
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
4646
helm install \
4747
cert-manager jetstack/cert-manager \
4848
--namespace cert-manager \
49-
--version v1.0.4 \
49+
--version v1.10.1 \
5050
# --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+
6052
#To automatically install and manage the CRDs as part of your Helm release,
6153
# you must add the --set installCRDs=true flag to your Helm installation command.
6254
```
@@ -81,12 +73,12 @@ Follow the steps below to install [cert-manager](https://docs.cert-manager.io) o
8173
```bash
8274
#!/bin/bash
8375
kubectl apply -f - <<EOF
84-
apiVersion: certmanager.k8s.io/v1alpha1
76+
apiVersion: cert-manager.io/v1
8577
kind: ClusterIssuer
8678
metadata:
87-
name: letsencrypt-staging
79+
name: letsencrypt-staging
8880
spec:
89-
acme:
81+
acme:
9082
# You must replace this email address with your own.
9183
# Let's Encrypt will use this to contact you about expiring
9284
# 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
9789
# before moving to production
9890
server: https://acme-staging-v02.api.letsencrypt.org/directory
9991
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
10294
# Enable the HTTP-01 challenge provider
10395
# you prove ownership of a domain by ensuring that a particular
10496
# file is present at the domain
105-
http01: {}
97+
solvers:
98+
- http01:
99+
ingress:
100+
class: azure/application-gateway
106101
EOF
107102
```
108103

@@ -127,7 +122,7 @@ Follow the steps below to install [cert-manager](https://docs.cert-manager.io) o
127122
name: guestbook-letsencrypt-staging
128123
annotations:
129124
kubernetes.io/ingress.class: azure/application-gateway
130-
certmanager.k8s.io/cluster-issuer: letsencrypt-staging
125+
cert-manager.io/cluster-issuer: letsencrypt-staging
131126
spec:
132127
tls:
133128
- hosts:

0 commit comments

Comments
 (0)