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
06960694
Commit
06960694
authored
8 years ago
by
Bogdan Dobrelya
Committed by
GitHub
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1063 from bogdando/fix
Align LB defaults with the HA docs
parents
6ae6b7cf
f2a4619c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/ha-mode.md
+4
-5
4 additions, 5 deletions
docs/ha-mode.md
docs/vars.md
+3
-2
3 additions, 2 deletions
docs/vars.md
roles/kubernetes/node/tasks/main.yml
+1
-1
1 addition, 1 deletion
roles/kubernetes/node/tasks/main.yml
with
8 additions
and
8 deletions
docs/ha-mode.md
+
4
−
5
View file @
06960694
...
...
@@ -15,8 +15,7 @@ The `etcd_access_endpoint` fact provides an access pattern for clients. And the
`etcd_multiaccess`
(defaults to
`True`
) group var controlls that behavior.
It makes deployed components to access the etcd cluster members
directly:
`http://ip1:2379, http://ip2:2379,...`
. This mode assumes the clients
do a loadbalancing and handle HA for connections. Note, a pod definition of a
flannel networking plugin always uses a single
`--etcd-server`
endpoint!
do a loadbalancing and handle HA for connections.
Kube-apiserver
...
...
@@ -28,7 +27,7 @@ non-master Kubernetes node. This is referred to as localhost loadbalancing. It
is less efficient than a dedicated load balancer because it creates extra
health checks on the Kubernetes apiserver, but is more practical for scenarios
where an external LB or virtual IP management is inconvenient. This option is
configured by the variable
`loadbalancer_apiserver_localhost`
(defaults to
`
Fals
e`
).
configured by the variable
`loadbalancer_apiserver_localhost`
(defaults to
`
Tru
e`
).
You may also define the port the local internal loadbalancer users by changing,
`nginx_kube_apiserver_port`
. This defaults to the value of
`kube_apiserver_port`
.
It is also import to note that Kargo will only configure kubelet and kube-proxy
...
...
@@ -89,9 +88,9 @@ Access endpoints are evaluated automagically, as the following:
| Endpoint type | kube-master | non-master |
|------------------------------|---------------|---------------------|
| Local LB
| http://lc:p | https://lc:nsp |
| Local LB
(default)
| http://lc:p | https://lc:nsp |
| External LB, no internal | https://lb:lp | https://lb:lp |
| No ext/int LB
(default)
| http://lc:p | https://m[0].aip:sp |
| No ext/int LB
| http://lc:p | https://m[0].aip:sp |
Where:
*
`m[0]`
- the first node in the
`kube-master`
group;
...
...
This diff is collapsed.
Click to expand it.
docs/vars.md
+
3
−
2
View file @
06960694
...
...
@@ -41,8 +41,9 @@ Some variables of note include:
address instead of localhost for kube-masters and kube-master[0] for
kube-nodes. See more details in the
[
HA guide
](
https://github.com/kubernetes-incubator/kargo/blob/master/docs/ha-mode.md
)
.
*
*loadbalancer_apiserver_localhost*
- If enabled, all hosts will connect to
the apiserver internally load balanced endpoint. See more details in the
*
*loadbalancer_apiserver_localhost*
- makes all hosts to connect to
the apiserver internally load balanced endpoint. Mutual exclusive to the
`loadbalancer_apiserver`
. See more details in the
[
HA guide
](
https://github.com/kubernetes-incubator/kargo/blob/master/docs/ha-mode.md
)
.
#### Cluster variables
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes/node/tasks/main.yml
+
1
−
1
View file @
06960694
...
...
@@ -8,7 +8,7 @@
tags
:
kubelet
-
include
:
nginx-proxy.yml
when
:
is_kube_master ==
false
and loadbalancer_apiserver_localhost|default(
fals
e)
when
:
is_kube_master ==
false
and loadbalancer_apiserver_localhost|default(
tru
e)
tags
:
nginx
-
name
:
Write kubelet config 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