# Real GitLab on the VPS - standalone Redis, same pattern as home's # apps/gitlab/manifests/redis-cluster.yaml (despite that file's name, # it's already just a single standalone instance - "Sentinel" in the # filename is legacy, not what's actually running). local-path storage # instead of rook-ceph-block. --- apiVersion: v1 kind: Service metadata: name: redis-gitlab namespace: gitlab spec: ports: - port: 6379 targetPort: 6379 name: redis selector: app: redis-gitlab type: ClusterIP --- apiVersion: apps/v1 kind: StatefulSet metadata: name: redis-gitlab namespace: gitlab spec: serviceName: redis-gitlab replicas: 1 selector: matchLabels: app: redis-gitlab template: metadata: labels: app: redis-gitlab spec: securityContext: fsGroup: 1000 containers: - name: redis image: redis:7.0-alpine securityContext: runAsUser: 999 runAsGroup: 1000 runAsNonRoot: true allowPrivilegeEscalation: false capabilities: drop: ["ALL"] ports: - containerPort: 6379 name: redis command: - sh - -c - redis-server --appendonly yes --requirepass "$REDIS_PASSWORD" env: - name: REDIS_PASSWORD valueFrom: secretKeyRef: name: redis-gitlab-secret key: password resources: requests: cpu: 25m memory: 128Mi limits: memory: 512Mi volumeMounts: - name: data mountPath: /data - name: tmp mountPath: /tmp volumes: - name: tmp emptyDir: {} volumeClaimTemplates: - metadata: name: data spec: accessModes: ["ReadWriteOnce"] storageClassName: local-path resources: requests: storage: 5Gi