charts/charts/mautrix-facebook/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

66 lines
2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "mautrix-facebook.fullname" . }}
labels:
{{- include "mautrix-facebook.labels" . | nindent 4 }}
spec:
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
replicas: 1
selector:
matchLabels:
{{- include "mautrix-facebook.selectorLabels" . | nindent 6 }}
template:
metadata:
annotations:
checksum/config: {{ include (print $.Template.BasePath "/secret.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "mautrix-facebook.selectorLabels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
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: appservice
containerPort: 29319
protocol: TCP
resources:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
- name: mainconfig
readOnly: true
mountPath: "/data"
command:
- python3
- -m
- mautrix_facebook
- -c
- /data/config.yaml
{{- 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: mainconfig
secret:
secretName: {{ include "mautrix-facebook.fullname" . }}