apiVersion: apps/v1 kind: StatefulSet metadata: name: thelounge labels: app.kubernetes.io/name: thelounge spec: replicas: 1 serviceName: "thelounge" selector: matchLabels: app.kubernetes.io/name: thelounge template: metadata: labels: app.kubernetes.io/name: thelounge spec: volumes: - name: thelounge-data persistentVolumeClaim: claimName: thelounge-pvc containers: - name: thelounge image: ghcr.io/thelounge/thelounge:latest imagePullPolicy: Always ports: - containerPort: 9000 volumeMounts: - name: thelounge-data mountPath: "/var/opt/thelounge"