charts/charts/node-red/templates/deployment.yaml
Alex Manning cea92dac01
All checks were successful
ci/woodpecker/push/mariadb Pipeline was successful
ci/woodpecker/push/matrix-appservice-irc Pipeline was successful
ci/woodpecker/push/esphome Pipeline was successful
ci/woodpecker/push/mautrix-instagram Pipeline was successful
ci/woodpecker/push/mautrix-whatsapp Pipeline was successful
ci/woodpecker/push/mqtt Pipeline was successful
ci/woodpecker/push/node-red Pipeline was successful
ci/woodpecker/push/zigbee2mqtt Pipeline was successful
ci/woodpecker/push/mautrix-facebook Pipeline was successful
ci/woodpecker/push/homeassistant Pipeline was successful
Configure revisionHistoryLimit
2023-03-06 19:47:06 +00:00

71 lines
2.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "node-red.fullname" . }}
labels:
{{- include "node-red.labels" . | nindent 4 }}
spec:
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
{{- include "node-red.selectorLabels" . | nindent 6 }}
template:
metadata:
{{- with .Values.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "node-red.selectorLabels" . | nindent 8 }}
spec:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "node-red.serviceAccountName" . }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
containers:
- name: {{ .Chart.Name }}
securityContext:
{{- toYaml .Values.securityContext | nindent 12 }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- name: http
containerPort: 1880
protocol: TCP
livenessProbe:
httpGet:
path: /
port: http
readinessProbe:
httpGet:
path: /
port: http
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: data
mountPath: /data
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: data
persistentVolumeClaim:
claimName: {{ include "node-red.fullname" . }}