From 04f2690d4def21afc2898c0dc400d447333deb5a Mon Sep 17 00:00:00 2001 From: JameKeal <413621396@qq.com> Date: Tue, 21 Mar 2023 14:36:51 +0800 Subject: [PATCH] fix yurthub dnsPolicy when using pool-coordinator --- config/setup/yurthub.yaml | 1 + pkg/yurtadm/constants/constants.go | 1 + 2 files changed, 2 insertions(+) diff --git a/config/setup/yurthub.yaml b/config/setup/yurthub.yaml index f6fb35da228..743b58203ff 100644 --- a/config/setup/yurthub.yaml +++ b/config/setup/yurthub.yaml @@ -6,6 +6,7 @@ metadata: name: yurt-hub namespace: kube-system spec: + dnsPolicy: ClusterFirstWithHostNet volumes: - name: hub-dir hostPath: diff --git a/pkg/yurtadm/constants/constants.go b/pkg/yurtadm/constants/constants.go index 6aac12e21f4..0c9515b2d8a 100644 --- a/pkg/yurtadm/constants/constants.go +++ b/pkg/yurtadm/constants/constants.go @@ -189,6 +189,7 @@ metadata: name: yurt-hub namespace: kube-system spec: + dnsPolicy: ClusterFirstWithHostNet volumes: - name: hub-dir hostPath: