22 lines
570 B
Django/Jinja
22 lines
570 B
Django/Jinja
apiVersion: kubeadm.k8s.io/v1beta1
|
|
kind: InitConfiguration
|
|
nodeRegistration:
|
|
criSocket: {{ cri_socket }}
|
|
---
|
|
apiVersion: kubeadm.k8s.io/v1beta1
|
|
kind: ClusterConfiguration
|
|
imageRepository: {{ kube_image_repo }}
|
|
kubernetesVersion: {{ kube_version }}
|
|
etcd:
|
|
external:
|
|
endpoints:
|
|
{% for endpoint in etcd_access_addresses.split(',') %}
|
|
- {{ endpoint }}
|
|
{% endfor %}
|
|
{% if dns_mode in ['coredns', 'coredns_dual'] %}
|
|
dns:
|
|
type: CoreDNS
|
|
imageRepository: {{ coredns_image_repo | regex_replace('/coredns$','') }}
|
|
imageTag: {{ coredns_image_tag }}
|
|
{% endif %}
|