mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-25 06:56:07 -03:30
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
This commit is contained in:
committed by
Matthew Mosesohn
parent
c116b8022e
commit
ae47b617e3
@@ -81,7 +81,7 @@ kube_hyperkube_image_repo: ""
|
||||
|
||||
# If non-empty, will use this string as identification instead of the actual hostname
|
||||
kube_override_hostname: >-
|
||||
{%- if cloud_provider is defined -%}
|
||||
{%- if cloud_provider is defined and cloud_provider in [ 'aws' ] -%}
|
||||
{%- else -%}
|
||||
{{ ansible_hostname }}
|
||||
{%- endif -%}
|
||||
|
||||
Reference in New Issue
Block a user