Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
e1386ba6
Commit
e1386ba6
authored
7 years ago
by
jwfang
Browse files
Options
Downloads
Patches
Plain Diff
only patch system:kube-dns role for old dns
parent
83deecb9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/kubernetes-apps/ansible/tasks/main.yml
+4
-3
4 additions, 3 deletions
roles/kubernetes-apps/ansible/tasks/main.yml
with
4 additions
and
3 deletions
roles/kubernetes-apps/ansible/tasks/main.yml
+
4
−
3
View file @
e1386ba6
...
...
@@ -26,8 +26,7 @@
-
rbac_enabled or item.type not in kubedns_rbac_resources
tags
:
dnsmasq
# see https://github.com/kubernetes/kubernetes/issues/45084
# TODO: this is only needed for "old" kube-dns
# see https://github.com/kubernetes/kubernetes/issues/45084, only needed for "old" kube-dns
-
name
:
Kubernetes Apps | Patch system:kube-dns ClusterRole
command
:
>
{{bin_dir}}/kubectl patch clusterrole system:kube-dns
...
...
@@ -40,7 +39,9 @@
}
]
}'
when
:
dns_mode != 'none' and inventory_hostname == groups['kube-master'][0] and rbac_enabled
when
:
-
dns_mode != 'none' and inventory_hostname == groups['kube-master'][0]
-
rbac_enabled and kubedns_version|version_compare("1.11.0", "<", strict=True)
tags
:
dnsmasq
-
name
:
Kubernetes Apps | Start Resources
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment