Fix template
This commit is contained in:
parent
0223b84c93
commit
f72705d2d8
1 changed files with 8 additions and 4 deletions
|
|
@ -45,7 +45,7 @@ apiVersion: kubeadm.k8s.io/v1beta2
|
||||||
kind: JoinConfiguration
|
kind: JoinConfiguration
|
||||||
controlPlane:
|
controlPlane:
|
||||||
localAPIEndpoint:
|
localAPIEndpoint:
|
||||||
advertiseAddress: "{{ ansible_host }}"
|
advertiseAddress: "{{ ansible_default_ipv4.address }}"
|
||||||
bindPort: 6443
|
bindPort: 6443
|
||||||
certificateKey: "{{ kubecertskey.stdout }}"
|
certificateKey: "{{ kubecertskey.stdout }}"
|
||||||
discovery:
|
discovery:
|
||||||
|
|
@ -65,11 +65,15 @@ nodeRegistration:
|
||||||
apiVersion: kubeadm.k8s.io/v1beta1
|
apiVersion: kubeadm.k8s.io/v1beta1
|
||||||
kind: ClusterConfiguration
|
kind: ClusterConfiguration
|
||||||
kubernetesVersion: stable
|
kubernetesVersion: stable
|
||||||
controlPlaneEndpoint: "{{ lb_kubemaster }}:6443"
|
{% if lbip_kubeapiserver is defined %}
|
||||||
{% if is defined %}
|
controlPlaneEndpoint: "{{ lbip_kubeapiserver }}:6443"
|
||||||
|
{% else %}
|
||||||
|
controlPlaneEndpoint: "{{ ansible_default_ipv4.address }}:6443"
|
||||||
|
{% endif %}
|
||||||
|
{% if lb_kubemaster is defined %}
|
||||||
apiServer:
|
apiServer:
|
||||||
certSANs:
|
certSANs:
|
||||||
- "{{ lbip_kubeapiserver }}"
|
- "{{ lb_kubemaster }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
networking:
|
networking:
|
||||||
podSubnet: "10.244.0.0/16"
|
podSubnet: "10.244.0.0/16"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue