45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: {{ include "logseq-syncthing-chart.fullname" . }}
|
|
labels:
|
|
app: {{ include "logseq-syncthing-chart.name" . }}
|
|
spec:
|
|
replicas: {{ .Values.replicaCount }}
|
|
selector:
|
|
matchLabels:
|
|
app: {{ include "logseq-syncthing-chart.name" . }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: {{ include "logseq-syncthing-chart.name" . }}
|
|
spec:
|
|
containers:
|
|
- name: logseq
|
|
image: "{{ .Values.image.logseq.repository }}:{{ .Values.image.logseq.tag }}"
|
|
imagePullPolicy: {{ .Values.image.logseq.pullPolicy }}
|
|
ports:
|
|
- containerPort: 80
|
|
volumeMounts:
|
|
- name: logseq-vault
|
|
mountPath: /vault
|
|
- name: syncthing
|
|
image: "{{ .Values.image.syncthing.repository }}:{{ .Values.image.syncthing.tag }}"
|
|
imagePullPolicy: {{ .Values.image.syncthing.pullPolicy }}
|
|
ports:
|
|
- containerPort: 8384
|
|
volumeMounts:
|
|
- name: logseq-vault
|
|
mountPath: /vault
|
|
- name: syncthing-config
|
|
mountPath: /config
|
|
|
|
volumes:
|
|
- name: logseq-vault
|
|
persistentVolumeClaim:
|
|
claimName: logseq-vault-pvc
|
|
- name: syncthing-config
|
|
persistentVolumeClaim:
|
|
claimName: syncthing-config-pvc
|
|
|