Little fix for nodes
This commit is contained in:
parent
56bb742890
commit
5b9b446709
2 changed files with 23 additions and 23 deletions
|
|
@ -1,6 +1,6 @@
|
|||
apiVersion: kubeadm.k8s.io/v1beta2
|
||||
kind: InitConfiguration
|
||||
{% if kubetoken is defined %} %}
|
||||
{% if kubetoken is defined %}
|
||||
bootstrapTokens:
|
||||
- token: "{{ kubetoken.stdout }}"
|
||||
description: "kubeadm bootstrap token"
|
||||
|
|
@ -40,18 +40,19 @@ nodeRegistration:
|
|||
localAPIEndpoint:
|
||||
advertiseAddress: "{{ ansible_default_ipv4.address }}"
|
||||
bindPort: 6443
|
||||
{% if kubernetes_certificateKey is defined %}
|
||||
{% if kubernetes_master|bool %}
|
||||
certificateKey: "{{ kubernetes_certificateKey.stdout }}"
|
||||
{% endif %}
|
||||
{% if kubecertskey is defined %}
|
||||
---
|
||||
apiVersion: kubeadm.k8s.io/v1beta2
|
||||
kind: JoinConfiguration
|
||||
{% if kubernetes_master|bool %}
|
||||
controlPlane:
|
||||
localAPIEndpoint:
|
||||
advertiseAddress: "{{ ansible_default_ipv4.address }}"
|
||||
bindPort: 6443
|
||||
certificateKey: "{{ kubecertskey.stdout }}"
|
||||
certificateKey: "{{ kubernetes_certificateKey.stdout }}"
|
||||
{% endif %}
|
||||
discovery:
|
||||
bootstrapToken:
|
||||
apiServerEndpoint: "{{ lb_kubemaster }}:6443"
|
||||
|
|
@ -64,7 +65,6 @@ nodeRegistration:
|
|||
read-only-port: "10255"
|
||||
ignorePreflightErrors:
|
||||
- SystemVerification
|
||||
{% endif %}
|
||||
---
|
||||
apiVersion: kubeadm.k8s.io/v1beta1
|
||||
kind: ClusterConfiguration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue