KubeADM-AIO: allow cluster domain to be customised
This PS allows the cluster domain to be customised if desired. Change-Id: I86b9271b6248a36ce39a367b814cffa2bea6d4b3
This commit is contained in:
parent
3e68d02fc2
commit
3dfcde8849
@ -18,3 +18,4 @@ kubernetes:
|
||||
cluster:
|
||||
cni: calico
|
||||
pod_subnet: 192.168.0.0/16
|
||||
domain: cluster.local
|
||||
|
@ -45,7 +45,7 @@
|
||||
PVC_SUPPORT_NFS=true
|
||||
NET_SUPPORT_LINUXBRIDGE=true
|
||||
KUBE_NET_POD_SUBNET="{{ kubernetes.cluster.pod_subnet }}"
|
||||
KUBE_NET_DNS_DOMAIN=cluster.local
|
||||
KUBE_NET_DNS_DOMAIN="{{ kubernetes.cluster.domain }}"
|
||||
CONTAINER_RUNTIME=docker
|
||||
register: kubeadm_master_deploy
|
||||
ignore_errors: True
|
||||
|
@ -47,7 +47,7 @@
|
||||
PVC_SUPPORT_NFS=true
|
||||
NET_SUPPORT_LINUXBRIDGE=true
|
||||
KUBE_NET_POD_SUBNET="{{ kubernetes.cluster.pod_subnet }}"
|
||||
KUBE_NET_DNS_DOMAIN=cluster.local
|
||||
KUBE_NET_DNS_DOMAIN="{{ kubernetes.cluster.domain }}"
|
||||
CONTAINER_RUNTIME=docker
|
||||
KUBELET_NODE_LABELS="{{ kubeadm_kubelet_labels }}"
|
||||
register: kubeadm_master_deploy
|
||||
|
@ -28,6 +28,7 @@ kubernetes:
|
||||
cluster:
|
||||
cni: calico
|
||||
pod_subnet: 192.168.0.0/16
|
||||
domain: cluster.local
|
||||
|
||||
nodes:
|
||||
labels:
|
||||
|
@ -50,7 +50,7 @@
|
||||
delegate_to: 127.0.0.1
|
||||
block:
|
||||
- name: kubeadm | dns
|
||||
command: helm install /opt/charts/kube-dns --name kube-dns --namespace kube-system --wait
|
||||
command: "helm install /opt/charts/kube-dns --name kube-dns --namespace kube-system --set networking.dnsDomain={{ k8s.networking.dnsDomain }} --wait"
|
||||
environment:
|
||||
HELM_HOST: 'localhost:44134'
|
||||
- name: kubeadm | dns
|
||||
|
Loading…
Reference in New Issue
Block a user