From 254af78e42122d6fcd39d6cb439e92ebd88c668c Mon Sep 17 00:00:00 2001 From: sepauli Date: Tue, 18 Jun 2024 19:05:43 +0200 Subject: [PATCH] add hostNetwork to rufio Signed-off-by: sepauli --- tinkerbell/rufio/templates/deployment.yaml | 4 ++++ tinkerbell/rufio/values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/tinkerbell/rufio/templates/deployment.yaml b/tinkerbell/rufio/templates/deployment.yaml index 279eccf9..0ccf8f00 100644 --- a/tinkerbell/rufio/templates/deployment.yaml +++ b/tinkerbell/rufio/templates/deployment.yaml @@ -23,6 +23,10 @@ spec: control-plane: controller-manager stack: tinkerbell spec: + {{- if .Values.hostNetwork }} + hostNetwork: true + dnsPolicy: ClusterFirstWithHostNet + {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} diff --git a/tinkerbell/rufio/values.yaml b/tinkerbell/rufio/values.yaml index 174b651e..ebd487e9 100644 --- a/tinkerbell/rufio/values.yaml +++ b/tinkerbell/rufio/values.yaml @@ -16,6 +16,7 @@ managerRoleName: rufio-manager-role rufioLeaderElectionRoleBindingName: rufio-leader-election-rolebinding managerRoleBindingName: rufio-manager-rolebinding nodeSelector: {} +hostNetwork: false # singleNodeClusterConfig to add tolerations for deployments on control plane nodes. This is defaulted to false. singleNodeClusterConfig: controlPlaneTolerationsEnabled: false