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