apiVersion: apps/v1 kind: Deployment metadata: name: unifi namespace: unifi labels: app: unifi spec: replicas: 1 selector: matchLabels: app: unifi strategy: type: Recreate template: metadata: labels: app: unifi spec: containers: - name: unifi image: bv11-cr01.bessems.eu/proxy/linuxserver/unifi-controller ports: - name: web containerPort: 8443 - name: comm containerPort: 8080 - name: bandwidth containerPort: 6789 - name: syslog containerPort: 5514 - name: stun containerPort: 3479 protocol: UDP - name: discovery containerPort: 10001 protocol: UDP volumeMounts: - mountPath: /config name: longhorn-unifi-config volumes: - name: longhorn-unifi-config persistentVolumeClaim: claimName: longhorn-unifi-config