mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-07 09:27:38 -02:30
UpCloud integration (#8653)
* [upcloud] add upcloud csi-driver * Option to use ansible_host as api ip for kubueconfig
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
---
|
||||
kubeconfig_localhost: false
|
||||
kubeconfig_localhost_ansible_host: false
|
||||
kubectl_localhost: false
|
||||
artifacts_dir: "{{ inventory_dir }}/artifacts"
|
||||
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
external_apiserver_address: >-
|
||||
{%- if loadbalancer_apiserver is defined and loadbalancer_apiserver.address is defined -%}
|
||||
{{ loadbalancer_apiserver.address }}
|
||||
{%- elif kubeconfig_localhost_ansible_host is defined and kubeconfig_localhost_ansible_host -%}
|
||||
{{ hostvars[groups['kube_control_plane'][0]].ansible_host }}
|
||||
{%- else -%}
|
||||
{{ kube_apiserver_access_address }}
|
||||
{%- endif -%}
|
||||
|
||||
Reference in New Issue
Block a user