mirror of
https://github.com/Infisical/infisical.git
synced 2026-01-06 22:23:53 -05:00
62 lines
2.2 KiB
YAML
62 lines
2.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "secrets-operator.fullname" . }}-controller-manager
|
|
labels:
|
|
control-plane: controller-manager
|
|
{{- include "secrets-operator.labels" . | nindent 4 }}
|
|
spec:
|
|
replicas: {{ .Values.controllerManager.replicas }}
|
|
selector:
|
|
matchLabels:
|
|
control-plane: controller-manager
|
|
{{- include "secrets-operator.selectorLabels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
control-plane: controller-manager
|
|
{{- include "secrets-operator.selectorLabels" . | nindent 8 }}
|
|
annotations:
|
|
kubectl.kubernetes.io/default-container: manager
|
|
spec:
|
|
containers:
|
|
- args:
|
|
{{- toYaml .Values.controllerManager.manager.args | nindent 8 }}
|
|
{{- if and .Values.scopedNamespace .Values.scopedRBAC }}
|
|
- --namespace={{ .Values.scopedNamespace }}
|
|
{{- end }}
|
|
command:
|
|
- /manager
|
|
env:
|
|
- name: KUBERNETES_CLUSTER_DOMAIN
|
|
value: {{ quote .Values.kubernetesClusterDomain }}
|
|
image: {{ .Values.controllerManager.manager.image.repository }}:{{ .Values.controllerManager.manager.image.tag
|
|
| default .Chart.AppVersion }}
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /healthz
|
|
port: 8081
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 20
|
|
name: manager
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /readyz
|
|
port: 8081
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 10
|
|
resources: {{- toYaml .Values.controllerManager.manager.resources | nindent 10
|
|
}}
|
|
securityContext: {{- toYaml .Values.controllerManager.manager.containerSecurityContext
|
|
| nindent 10 }}
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
serviceAccountName: {{ include "secrets-operator.fullname" . }}-controller-manager
|
|
{{- with .Values.imagePullSecrets }}
|
|
imagePullSecrets:
|
|
{{- toYaml . | nindent 8 }}
|
|
{{- end }}
|
|
terminationGracePeriodSeconds: 10
|
|
nodeSelector: {{ toYaml .Values.controllerManager.nodeSelector | nindent 8 }}
|
|
tolerations: {{ toYaml .Values.controllerManager.tolerations | nindent 8 }}
|