mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Create control plane with ClusterFirstWithHostNet dns policy
This commit is contained in:
parent
d1111a57d9
commit
8f6ec989e0
@ -67,6 +67,7 @@ func ComponentPod(container v1.Container, volumes map[string]v1.Volume) v1.Pod {
|
|||||||
Containers: []v1.Container{container},
|
Containers: []v1.Container{container},
|
||||||
PriorityClassName: "system-cluster-critical",
|
PriorityClassName: "system-cluster-critical",
|
||||||
HostNetwork: true,
|
HostNetwork: true,
|
||||||
|
DNSPolicy: v1.DNSClusterFirstWithHostNet,
|
||||||
Volumes: VolumeMapToSlice(volumes),
|
Volumes: VolumeMapToSlice(volumes),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -380,6 +380,7 @@ func TestComponentPod(t *testing.T) {
|
|||||||
},
|
},
|
||||||
PriorityClassName: "system-cluster-critical",
|
PriorityClassName: "system-cluster-critical",
|
||||||
HostNetwork: true,
|
HostNetwork: true,
|
||||||
|
DNSPolicy: v1.DNSClusterFirstWithHostNet,
|
||||||
Volumes: []v1.Volume{},
|
Volumes: []v1.Volume{},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user