Skip to content

Commit

Permalink
Updated tutorial to support Kubernetes 1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
jryberg committed Apr 29, 2022
1 parent 2d08e66 commit 35a76ad
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions docs/tutorials/azure.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ The contents of `azure.json` should be similar to this:
}
```
*NOTE:* If there are multiple user assigned identitys available add "userAssignedIdentityID": "<id>" to the json
If you have all the information necessary: create a file called azure.json containing the json structure above and substitute the values. Otherwise create a service principal as previously shown before creating the Kubernetes secret.
Then add the secret to the Kubernetes cluster before continuing:
Expand Down Expand Up @@ -191,7 +193,7 @@ spec:
spec:
containers:
- name: external-dns
image: k8s.gcr.io/external-dns/external-dns:v0.8.0
image: k8s.gcr.io/external-dns/external-dns:v0.11.0
args:
- --source=service
- --source=ingress
Expand All @@ -207,7 +209,7 @@ spec:
secret:
secretName: azure-config-file
items:
- key: externaldns-config.json
- key: azure.json
path: azure.json
```
Expand All @@ -223,15 +225,18 @@ kind: ClusterRole
metadata:
name: external-dns
rules:
- apiGroups: [""]
resources: ["services","endpoints","pods"]
verbs: ["get","watch","list"]
- apiGroups: ["extensions","networking.k8s.io"]
resources: ["ingresses"]
verbs: ["get","watch","list"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["list"]
- apiGroups: ['']
resources: ['endpoints', 'pods', 'services']
verbs: ['get', 'watch', 'list']
- apiGroups: ['extensions']
resources: ['ingresses']
verbs: ['get', 'watch', 'list']
- apiGroups: ["networking.k8s.io"]
resources: ["ingresses"]
verbs: ["get","watch","list"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["watch", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down Expand Up @@ -281,7 +286,7 @@ spec:
secret:
secretName: azure-config-file
items:
- key: externaldns-config.json
- key: azure.json
path: azure.json
```
Expand Down Expand Up @@ -354,7 +359,7 @@ spec:
secret:
secretName: azure-config-file
items:
- key: externaldns-config.json
- key: azure.json
path: azure.json
```
Expand Down

0 comments on commit 35a76ad

Please sign in to comment.