731d32afda
* Add HA docs for API server. * Add auto-evaluated internal endpoints and clarify the loadbalancer_apiserver vars and usecases. * Use facts for kube_apiserver to not repeat code and enable LB endpoints use. * Use /healthz check for the wait-for apiserver. * Use the single endpoint for kubelet instead of the list of apiservers * Specify kube_apiserver_count to for HA layout Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
18 lines
415 B
Django/Jinja
18 lines
415 B
Django/Jinja
apiVersion: v1
|
|
kind: Config
|
|
current-context: kubectl-to-{{ cluster_name }}
|
|
preferences: {}
|
|
clusters:
|
|
- cluster:
|
|
certificate-authority-data: {{ kube_node_cert|b64encode }}
|
|
server: {{ kube_apiserver_endpoint }}
|
|
name: {{ cluster_name }}
|
|
contexts:
|
|
- context:
|
|
cluster: {{ cluster_name }}
|
|
user: kubectl
|
|
name: kubectl-to-{{ cluster_name }}
|
|
users:
|
|
- name: kubectl
|
|
user:
|
|
token: {{ kubectl_token }}
|