25 lines
626 B
YAML
25 lines
626 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: syncthing
|
|
spec:
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: syncthing
|
|
volumeMounts:
|
|
- name: sync-keys
|
|
mountPath: /var/syncthing/config/cert.pem
|
|
subPath: cert.pem
|
|
readOnly: true
|
|
- name: sync-keys
|
|
mountPath: /var/syncthing/config/key.pem
|
|
readOnly: true
|
|
subPath: key.pem
|
|
volumes:
|
|
- name: sync-keys
|
|
secret:
|
|
secretName: sync-secret
|
|
items:
|
|
- key: cert.pem
|
|
- key: key.pem
|