49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "trilium-syncthing-chart.fullname" . }}
|
|
labels:
|
|
app: {{ include "trilium-syncthing-chart.name" . }}
|
|
spec:
|
|
replicas: {{ .Values.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
app: {{ include "trilium-syncthing-chart.name" . }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ include "trilium-syncthing-chart.name" . }}
|
|
spec:
|
|
containers:
|
|
- name: trilium
|
|
image: "{{ .Values.image.trilium.repository }}:{{ .Values.image.trilium.tag }}"
|
|
imagePullPolicy: {{ .Values.image.trilium.pullPolicy }}
|
|
ports:
|
|
- containerPort: 8080
|
|
volumeMounts:
|
|
- name: trilium-vault
|
|
mountPath: /home/node/trilium-data
|
|
securityContext:
|
|
runAsUser: 1000
|
|
- name: syncthing
|
|
image: "{{ .Values.image.syncthing.repository }}:{{ .Values.image.syncthing.tag }}"
|
|
imagePullPolicy: {{ .Values.image.syncthing.pullPolicy }}
|
|
ports:
|
|
- containerPort: 8384
|
|
volumeMounts:
|
|
- name: trilium-vault
|
|
mountPath: /vault
|
|
- name: syncthing-config
|
|
mountPath: /config
|
|
securityContext:
|
|
runAsUser: 1000
|
|
|
|
volumes:
|
|
- name: trilium-vault
|
|
persistentVolumeClaim:
|
|
claimName: trilium-vault-pvc
|
|
- name: syncthing-config
|
|
persistentVolumeClaim:
|
|
claimName: syncthing-config-pvc
|
|
|