First charts - obsidian and trilium with syncthing
This commit is contained in:
48
trilium-syncthing-chart/templates/deployment.yaml
Normal file
48
trilium-syncthing-chart/templates/deployment.yaml
Normal file
@@ -0,0 +1,48 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user