diff --git a/deployments/gpu-operator/templates/operator.yaml b/deployments/gpu-operator/templates/operator.yaml index b5dc545ad..aa5757c14 100644 --- a/deployments/gpu-operator/templates/operator.yaml +++ b/deployments/gpu-operator/templates/operator.yaml @@ -82,6 +82,15 @@ spec: ports: - name: metrics containerPort: 8080 + {{- with .Values.operator.dnsConfig}} + dnsPolicy: "None" + dnsConfig: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.operator.securityContext }} + securityContext: + {{- toYaml . | nindent 8 }} + {{- end }} volumes: - name: host-os-release hostPath: