diff --git a/charts/gateway-operator/templates/deployment.yaml b/charts/gateway-operator/templates/deployment.yaml index 0466ec977..63e9ad705 100644 --- a/charts/gateway-operator/templates/deployment.yaml +++ b/charts/gateway-operator/templates/deployment.yaml @@ -31,6 +31,7 @@ spec: {{ include "kong.renderTpl" (dict "value" .Values.podLabels "context" $) | nindent 8 }} {{- end }} spec: + hostNetwork: {{ .Values.hostNetwork }} {{- with .Values.tolerations }} tolerations: {{ toYaml . | nindent 8 }} diff --git a/charts/gateway-operator/values.yaml b/charts/gateway-operator/values.yaml index 8c5ff2f31..2319eebb7 100644 --- a/charts/gateway-operator/values.yaml +++ b/charts/gateway-operator/values.yaml @@ -117,3 +117,7 @@ certsDir: # Override the default deployment selector labels. This is useful if you don't want # to use the defaults or are migrating to this chart and want to use existing labels. # selectorLabels: [] + +# Deploy the deployment in host network. +# May be required to set to true if Calico CNI is used. +hostNetwork: false \ No newline at end of file