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
5d9908c2
Commit
5d9908c2
authored
6 years ago
by
Samuele Chiocca
Browse files
Options
Downloads
Patches
Plain Diff
--nodeport-addresses added on kube-proxy.manifest.j2
Changed author
parent
73988585
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
inventory/sample/group_vars/k8s-cluster.yml
+5
-0
5 additions, 0 deletions
inventory/sample/group_vars/k8s-cluster.yml
roles/kubernetes/node/templates/manifests/kube-proxy.manifest.j2
+3
-0
3 additions, 0 deletions
...ubernetes/node/templates/manifests/kube-proxy.manifest.j2
with
8 additions
and
0 deletions
inventory/sample/group_vars/k8s-cluster.yml
+
5
−
0
View file @
5d9908c2
...
...
@@ -110,6 +110,11 @@ kube_apiserver_insecure_port: 8080 # (http)
# Can be ipvs, iptables
kube_proxy_mode
:
iptables
# Kube-proxy nodeport address.
# cidr to bind nodeport services. Flag --nodeport-addresses on kube-proxy manifest
kube_proxy_nodeport_addresses
:
false
# kube_proxy_nodeport_addresses_cidr: 10.0.1.0/24
## Encrypting Secret Data at Rest (experimental)
kube_encrypt_secret_data
:
false
...
...
This diff is collapsed.
Click to expand it.
roles/kubernetes/node/templates/manifests/kube-proxy.manifest.j2
+
3
−
0
View file @
5d9908c2
...
...
@@ -43,6 +43,9 @@ spec:
- --proxy-mode={{ kube_proxy_mode }}
- --oom-score-adj=-998
- --healthz-bind-address={{ kube_proxy_healthz_bind_address }}
{% if kube_proxy_nodeport_addresses %}
- --nodeport-addresses={{ kube_proxy_nodeport_addresses_cidr }}
{% endif %}
{% if kube_proxy_masquerade_all and kube_proxy_mode == "iptables" %}
- --masquerade-all
{% elif kube_proxy_mode == 'ipvs' %}
...
...
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