apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: github-actions-runner-controller-registry
spec:
  serviceName: github-actions-runner-controller-registry
  replicas: 1
  updateStrategy:
    type: RollingUpdate
  selector:
    matchLabels:
      app: github-actions-runner-controller-registry
  template:
    metadata:
      labels:
        app: github-actions-runner-controller-registry
    spec:
      containers:
        - name: registry
          image: registry:2
          imagePullPolicy: Always
          ports:
            - containerPort: 5000
          volumeMounts:
            - name: data
              mountPath: /var/lib/registry
  volumeClaimTemplates:
    - metadata:
        name: data
      spec:
        accessModes:
          - ReadWriteOnce
        resources:
          requests:
            storage: 10Gi
