Skip to content

Commit

Permalink
add affinity and tolerations
Browse files Browse the repository at this point in the history
  • Loading branch information
Pale-whale committed Feb 27, 2024
1 parent cfff91f commit d3f9a4f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/terraform-cloud-operator/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,14 @@ spec:
{{- toYaml .Values.kubeRbacProxy.resources | nindent 12 }}
securityContext:
allowPrivilegeEscalation: false
{{- with .Values.operator.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.operator.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ .Release.Name }}-controller-manager
securityContext:
runAsNonRoot: true
Expand Down

0 comments on commit d3f9a4f

Please sign in to comment.