Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,14 @@ spec:
labels:
control-plane: controller-manager
{{- include "chart.selectorLabels" . | nindent 8 }}
{{- with .Values.controllerManager.labels }}
{{- toYaml . | nindent 8 }}
{{- end }}
annotations:
kubectl.kubernetes.io/default-container: manager
{{- with .Values.controllerManager.annotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
containers:
- args: {{- toYaml .Values.controllerManager.kubeRbacProxy.args | nindent 8 }}
Expand Down Expand Up @@ -64,10 +70,21 @@ spec:
port: 8081
initialDelaySeconds: 5
periodSeconds: 10
{{- with .Values.controllerManager.manager.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 8 }}
{{- end }}
resources: {{- toYaml .Values.controllerManager.manager.resources | nindent 10
}}
securityContext: {{- toYaml .Values.controllerManager.manager.containerSecurityContext
| nindent 10 }}
{{- with .Values.controllerManager.extraContainers }}
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.controllerManager.volumes }}
volumes:
{{- toYaml . | nindent 6 }}
{{- end }}
securityContext:
runAsNonRoot: true
serviceAccountName: {{ include "chart.fullname" . }}-controller-manager
Expand Down
7 changes: 6 additions & 1 deletion chart/values.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
controllerManager:
annotations: {}
labels: {}
serviceMonitor:
enabled: false
kubeRbacProxy:
Expand Down Expand Up @@ -43,10 +45,13 @@ controllerManager:
requests:
cpu: 10m
memory: 64Mi
volumeMounts: []
extraContainers: []
volumes: []
replicas: 1
serviceAccount:
annotations: {}
tolerations: {}
tolerations: []
kubernetesClusterDomain: cluster.local
metricsService:
ports:
Expand Down
Loading