apiVersion: apps/v1 kind: Deployment metadata: name: syncthing-discovery namespace: {{ .namespace }} spec: replicas: 1 strategy: type: Recreate selector: matchLabels: component: server template: metadata: labels: component: server spec: securityContext: runAsNonRoot: false runAsUser: 0 seccompProfile: type: RuntimeDefault containers: - name: discosrv image: syncthing/discosrv:2.1.1 args: - --listen=:8080 - --http - --db-dir=/var/stdiscosrv ports: - name: http containerPort: 8080 protocol: TCP resources: limits: cpu: 500m memory: 128Mi requests: cpu: 25m memory: 32Mi volumeMounts: - name: discosrv-data mountPath: /var/stdiscosrv livenessProbe: tcpSocket: port: 8080 initialDelaySeconds: 10 periodSeconds: 30 failureThreshold: 3 readinessProbe: tcpSocket: port: 8080 initialDelaySeconds: 5 periodSeconds: 10 failureThreshold: 3 securityContext: readOnlyRootFilesystem: false volumes: - name: discosrv-data persistentVolumeClaim: claimName: syncthing-discovery-data restartPolicy: Always