apiVersion: v1 kind: Service metadata: name: homarr-service namespace: homarr spec: selector: app: homarr ports: - port: 7575 targetPort: 7575 --- apiVersion: apps/v1 kind: Deployment metadata: name: homarr-deployment namespace: homarr spec: replicas: 1 selector: matchLabels: app: homarr strategy: type: Recreate template: metadata: labels: app: homarr spec: serviceAccountName: homarr containers: - name: homarr image: ghcr.io/homarr-labs/homarr:v2.2.0 envFrom: - configMapRef: name: homarr-config - secretRef: name: homarr-secrets ports: - containerPort: 7575 readinessProbe: httpGet: path: / port: 7575 initialDelaySeconds: 30 periodSeconds: 10 failureThreshold: 6 livenessProbe: httpGet: path: / port: 7575 initialDelaySeconds: 60 periodSeconds: 30 failureThreshold: 3 volumeMounts: - name: homarr-data mountPath: /appdata resources: requests: cpu: "250m" memory: "350Mi" limits: cpu: "500m" memory: "700Mi" volumes: - name: homarr-data persistentVolumeClaim: claimName: homarr-pvc --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: homarr-pvc namespace: homarr spec: resources: requests: storage: 2Gi volumeMode: Filesystem accessModes: - ReadWriteOnce