37 lines
833 B
YAML
37 lines
833 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: StatefulSet
|
||
|
metadata:
|
||
|
name: app
|
||
|
spec:
|
||
|
template:
|
||
|
spec:
|
||
|
restartPolicy: Always
|
||
|
containers:
|
||
|
- name: syncthing
|
||
|
image: syncthing/syncthing:1.29
|
||
|
ports:
|
||
|
- name: syncthing
|
||
|
containerPort: 8384
|
||
|
protocol: TCP
|
||
|
volumeMounts:
|
||
|
- mountPath: /var/syncthing
|
||
|
name: syncthing-data
|
||
|
subPath: "data"
|
||
|
env:
|
||
|
- name: PUID
|
||
|
value: "976"
|
||
|
- name: PGID
|
||
|
value: "976"
|
||
|
volumeClaimTemplates:
|
||
|
- metadata:
|
||
|
name: ss-data
|
||
|
annotations:
|
||
|
name: ss-data
|
||
|
spec:
|
||
|
accessModes:
|
||
|
- ReadWriteOnce
|
||
|
storageClassName: longhorn-private
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: 50Gi
|