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
5c7eef70
Commit
5c7eef70
authored
6 years ago
by
Egor
Committed by
k8s-ci-robot
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix kube-router annotations: add conditions (#3670)
parent
c2710899
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
roles/network_plugin/kube-router/tasks/annotate.yml
+3
-3
3 additions, 3 deletions
roles/network_plugin/kube-router/tasks/annotate.yml
with
3 additions
and
3 deletions
roles/network_plugin/kube-router/tasks/annotate.yml
+
3
−
3
View file @
5c7eef70
...
@@ -4,18 +4,18 @@
...
@@ -4,18 +4,18 @@
with_items
:
with_items
:
-
"
{{
kube_router_annotations_master
}}"
-
"
{{
kube_router_annotations_master
}}"
delegate_to
:
"
{{groups['kube-master'][0]}}"
delegate_to
:
"
{{groups['kube-master'][0]}}"
when
:
kube_router_annotations_master is defined
when
:
kube_router_annotations_master is defined
and inventory_hostname in groups['kube-master']
-
name
:
kube-router | Add annotations on kube-node
-
name
:
kube-router | Add annotations on kube-node
command
:
"
{{bin_dir}}/kubectl
annotate
--overwrite
node
{{
ansible_hostname
}}
{{
item
}}"
command
:
"
{{bin_dir}}/kubectl
annotate
--overwrite
node
{{
ansible_hostname
}}
{{
item
}}"
with_items
:
with_items
:
-
"
{{
kube_router_annotations_node
}}"
-
"
{{
kube_router_annotations_node
}}"
delegate_to
:
"
{{groups['kube-master'][0]}}"
delegate_to
:
"
{{groups['kube-master'][0]}}"
when
:
kube_router_annotations_node is defined
when
:
kube_router_annotations_node is defined
and inventory_hostname in groups['kube-node']
-
name
:
kube-router | Add common annotations on all servers
-
name
:
kube-router | Add common annotations on all servers
command
:
"
{{bin_dir}}/kubectl
annotate
--overwrite
node
{{
ansible_hostname
}}
{{
item
}}"
command
:
"
{{bin_dir}}/kubectl
annotate
--overwrite
node
{{
ansible_hostname
}}
{{
item
}}"
with_items
:
with_items
:
-
"
{{
kube_router_annotations_all
}}"
-
"
{{
kube_router_annotations_all
}}"
delegate_to
:
"
{{groups['kube-master'][0]}}"
delegate_to
:
"
{{groups['kube-master'][0]}}"
when
:
kube_router_annotations_all is defined
when
:
kube_router_annotations_all is defined and inventory_hostname in groups['all']
\ No newline at end of file
\ No newline at end of file
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