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
72ae7638
Commit
72ae7638
authored
7 years ago
by
Antoine Legrand
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1446 from matlockx/master
add possibility to ignore the hostname override
parents
3bfad5ca
12e918bd
No related branches found
Branches containing commit
Tags
v2.1.2
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
roles/kubernetes/node/defaults/main.yml
+3
-0
3 additions, 0 deletions
roles/kubernetes/node/defaults/main.yml
roles/kubernetes/node/templates/kubelet.j2
+3
-2
3 additions, 2 deletions
roles/kubernetes/node/templates/kubelet.j2
with
6 additions
and
2 deletions
roles/kubernetes/node/defaults/main.yml
+
3
−
0
View file @
72ae7638
...
...
@@ -57,3 +57,6 @@ kubelet_custom_flags: []
## Empty vaule for quay.io containers
## docker for docker registry containers
kube_hyperkube_image_repo
:
"
"
# If non-empty, will use this string as identification instead of the actual hostname
kube_override_hostname
:
"
{{
ansible_hostname
}}"
This diff is collapsed.
Click to expand it.
roles/kubernetes/node/templates/kubelet.j2
+
3
−
2
View file @
72ae7638
...
...
@@ -6,8 +6,9 @@ KUBELET_ADDRESS="--address={{ ip | default("0.0.0.0") }}"
# The port for the info server to serve on
# KUBELET_PORT="--port=10250"
# You may leave this blank to use the actual hostname
KUBELET_HOSTNAME="--hostname-override={{ ansible_hostname }}"
{% if kube_override_hostname %}
KUBELET_HOSTNAME="--hostname-override={{ kube_override_hostname }}"
{% endif %}
{# Base kubelet args #}
{% set kubelet_args_base %}--pod-manifest-path={{ kube_manifest_dir }} \
--pod-infra-container-image={{ pod_infra_image_repo }}:{{ pod_infra_image_tag }} \
...
...
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