15 lines
476 B
Django/Jinja
15 lines
476 B
Django/Jinja
apiVersion: kubeadm.k8s.io/v1beta3
|
|
kind: ClusterConfiguration
|
|
kubernetesVersion: {{ k8s_version }}
|
|
clusterName: {{ cluster_name }}
|
|
controlPlaneEndpoint: "{{ control_plane_endpoint }}"
|
|
networking:
|
|
podSubnet: "{{ pod_cidr }}"
|
|
serviceSubnet: "{{ service_cidr }}"
|
|
---
|
|
apiVersion: kubeadm.k8s.io/v1beta3
|
|
kind: InitConfiguration
|
|
nodeRegistration:
|
|
kubeletExtraArgs:
|
|
node-ip: "{{ hostvars[inventory_hostname].wg_address | default(hostvars[inventory_hostname].public_ip) }}"
|