charts/falco/templates/deployment.yaml
2024-03-20 18:06:21 +08:00

23 lines
754 B
YAML

{{- if eq .Values.controller.kind "deployment" }}
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "falco.fullname" . }}
namespace: {{ include "falco.namespace" . }}
labels:
{{- include "falco.labels" . | nindent 4 }}
{{- if .Values.controller.annotations }}
annotations:
{{ toYaml .Values.controller.annotations | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.controller.deployment.replicas }}
{{- if .Values.controller.deployment.revisionHistoryLimit }}
revisionHistoryLimit: {{ .Values.controller.deployment.revisionHistoryLimit }}
{{- end }}
selector:
matchLabels:
{{- include "falco.selectorLabels" . | nindent 6 }}
template:
{{- include "falco.podTemplate" . | nindent 4 }}
{{- end }}