no need to patch system:kube-dns
This commit is contained in:
parent
5fa31eaead
commit
d8dcb8f6e0
1 changed files with 0 additions and 17 deletions
|
@ -26,23 +26,6 @@
|
||||||
- rbac_enabled or item.type not in kubedns_rbac_resources
|
- rbac_enabled or item.type not in kubedns_rbac_resources
|
||||||
tags: dnsmasq
|
tags: dnsmasq
|
||||||
|
|
||||||
# see https://github.com/kubernetes/kubernetes/issues/45084
|
|
||||||
# TODO: this is only needed for "old" kube-dns
|
|
||||||
- name: Kubernetes Apps | Patch system:kube-dns ClusterRole
|
|
||||||
command: >
|
|
||||||
{{bin_dir}}/kubectl patch clusterrole system:kube-dns
|
|
||||||
--patch='{
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"apiGroups" : [""],
|
|
||||||
"resources" : ["endpoints", "services"],
|
|
||||||
"verbs": ["list", "watch", "get"]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}'
|
|
||||||
when: dns_mode != 'none' and inventory_hostname == groups['kube-master'][0] and rbac_enabled
|
|
||||||
tags: dnsmasq
|
|
||||||
|
|
||||||
- name: Kubernetes Apps | Start Resources
|
- name: Kubernetes Apps | Start Resources
|
||||||
kube:
|
kube:
|
||||||
name: "{{item.item.name}}"
|
name: "{{item.item.name}}"
|
||||||
|
|
Loading…
Reference in a new issue