|
|
@ -1,4 +1,4 @@ |
|
|
|
apiVersion: kubeadm.k8s.io/v1alpha1 |
|
|
|
apiVersion: kubeadm.k8s.io/v1alpha2 |
|
|
|
kind: MasterConfiguration |
|
|
|
api: |
|
|
|
advertiseAddress: {{ ip | default(ansible_default_ipv4.address) }} |
|
|
@ -7,13 +7,14 @@ api: |
|
|
|
controlPlaneEndpoint: {{ kubeadm_config_api_fqdn }} |
|
|
|
{% endif %} |
|
|
|
etcd: |
|
|
|
endpoints: |
|
|
|
external: |
|
|
|
endpoints: |
|
|
|
{% for endpoint in etcd_access_addresses.split(',') %} |
|
|
|
- {{ endpoint }} |
|
|
|
- {{ endpoint }} |
|
|
|
{% endfor %} |
|
|
|
caFile: {{ kube_config_dir }}/ssl/etcd/ca.pem |
|
|
|
certFile: {{ kube_config_dir }}/ssl/etcd/node-{{ inventory_hostname }}.pem |
|
|
|
keyFile: {{ kube_config_dir }}/ssl/etcd/node-{{ inventory_hostname }}-key.pem |
|
|
|
caFile: {{ kube_config_dir }}/ssl/etcd/ca.pem |
|
|
|
certFile: {{ kube_config_dir }}/ssl/etcd/node-{{ inventory_hostname }}.pem |
|
|
|
keyFile: {{ kube_config_dir }}/ssl/etcd/node-{{ inventory_hostname }}-key.pem |
|
|
|
networking: |
|
|
|
dnsDomain: {{ dns_domain }} |
|
|
|
serviceSubnet: {{ kube_service_addresses }} |
|
|
|