Skip to content
Snippets Groups Projects
Commit ae47b617 authored by Stanislav Makar's avatar Stanislav Makar Committed by Matthew Mosesohn
Browse files

Fix 'no such host' problem (#2148)

Fix 'no such host' problem reported by commands *kubectl logs* and *kubectl exec*
when cloud_provider is OpenStack

Closes: #2147
parent c116b802
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,7 @@ kube_hyperkube_image_repo: "" ...@@ -81,7 +81,7 @@ kube_hyperkube_image_repo: ""
# If non-empty, will use this string as identification instead of the actual hostname # If non-empty, will use this string as identification instead of the actual hostname
kube_override_hostname: >- kube_override_hostname: >-
{%- if cloud_provider is defined -%} {%- if cloud_provider is defined and cloud_provider in [ 'aws' ] -%}
{%- else -%} {%- else -%}
{{ ansible_hostname }} {{ ansible_hostname }}
{%- endif -%} {%- endif -%}
......
...@@ -8,8 +8,8 @@ KUBE_LOG_LEVEL="--v={{ kube_log_level }}" ...@@ -8,8 +8,8 @@ KUBE_LOG_LEVEL="--v={{ kube_log_level }}"
KUBELET_ADDRESS="--address={{ kubelet_bind_address }} --node-ip={{ kubelet_address }}" KUBELET_ADDRESS="--address={{ kubelet_bind_address }} --node-ip={{ kubelet_address }}"
# The port for the info server to serve on # The port for the info server to serve on
# KUBELET_PORT="--port=10250" # KUBELET_PORT="--port=10250"
# You may leave this blank to use the actual hostname
{% if kube_override_hostname|default('') %} {% if kube_override_hostname|default('') %}
# You may leave this blank to use the actual hostname
KUBELET_HOSTNAME="--hostname-override={{ kube_override_hostname }}" KUBELET_HOSTNAME="--hostname-override={{ kube_override_hostname }}"
{% endif %} {% endif %}
{# Base kubelet args #} {# Base kubelet args #}
......
...@@ -5,8 +5,8 @@ KUBE_LOG_LEVEL="--v={{ kube_log_level }}" ...@@ -5,8 +5,8 @@ KUBE_LOG_LEVEL="--v={{ kube_log_level }}"
KUBELET_ADDRESS="--address={{ kubelet_bind_address }} --node-ip={{ kubelet_address }}" KUBELET_ADDRESS="--address={{ kubelet_bind_address }} --node-ip={{ kubelet_address }}"
# The port for the info server to serve on # The port for the info server to serve on
# KUBELET_PORT="--port=10250" # KUBELET_PORT="--port=10250"
# You may leave this blank to use the actual hostname
{% if kube_override_hostname|default('') %} {% if kube_override_hostname|default('') %}
# You may leave this blank to use the actual hostname
KUBELET_HOSTNAME="--hostname-override={{ kube_override_hostname }}" KUBELET_HOSTNAME="--hostname-override={{ kube_override_hostname }}"
{% endif %} {% endif %}
{# Base kubelet args #} {# Base kubelet args #}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment