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
bba3525c
Commit
bba3525c
authored
9 years ago
by
Smaine Kahlouch
Browse files
Options
Downloads
Patches
Plain Diff
use loadbalancer when that's possible
parent
2c816f66
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/templates/network-environment.j2
+4
-0
4 additions, 0 deletions
roles/network_plugin/templates/network-environment.j2
with
4 additions
and
0 deletions
roles/network_plugin/templates/network-environment.j2
+
4
−
0
View file @
bba3525c
...
...
@@ -5,7 +5,11 @@ CALICO_IPAM=true
DEFAULT_IPV4
={{
ip | default
(
ansible_default_ipv4.address
)
}}
# The kubernetes master IP
{
%
if
loadbalancer_apiserver is defined and apiserver_loadbalancer_domain_name is defined %
}
KUBERNETES_MASTER
=
https://
{{
apiserver_loadbalancer_domain_name
}}
:
{{
loadbalancer_apiserver.port
}}
{
%
else
%
}
KUBERNETES_MASTER
={{
hostvars[groups[
'kube-master'
][
0]][
'ip'
]
| default
(
hostvars[groups[
'kube-master'
][
0]][
'ansible_default_ipv4'
][
'address'
])
}}
{
% endif %
}
# Location of etcd cluster used by Calico. By default, this uses the etcd
# instance running on the Kubernetes Master
...
...
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