mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
kubeadm: When self-hosting, cluster DNS should be used
This commit is contained in:
parent
082c9a8fa5
commit
b7d84d53b0
@ -219,6 +219,7 @@ func getAPIServerDS(cfg *kubeadmapi.MasterConfiguration, volumes []v1.Volume, vo
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Tolerations: []v1.Toleration{kubeadmconstants.MasterToleration},
|
Tolerations: []v1.Toleration{kubeadmconstants.MasterToleration},
|
||||||
|
DNSPolicy: v1.DNSClusterFirstWithHostNet,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -270,7 +271,7 @@ func getControllerManagerDeployment(cfg *kubeadmapi.MasterConfiguration, volumes
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Tolerations: []v1.Toleration{kubeadmconstants.MasterToleration},
|
Tolerations: []v1.Toleration{kubeadmconstants.MasterToleration},
|
||||||
DNSPolicy: v1.DNSDefault,
|
DNSPolicy: v1.DNSClusterFirstWithHostNet,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
@ -322,6 +323,7 @@ func getSchedulerDeployment(cfg *kubeadmapi.MasterConfiguration, volumes []v1.Vo
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
Tolerations: []v1.Toleration{kubeadmconstants.MasterToleration},
|
Tolerations: []v1.Toleration{kubeadmconstants.MasterToleration},
|
||||||
|
DNSPolicy: v1.DNSClusterFirstWithHostNet,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user