apiVersion: apps/v1 kind: Deployment metadata: name: registry namespace: registry labels: app: registry spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: registry template: metadata: labels: app: registry spec: automountServiceAccountToken: false securityContext: runAsNonRoot: true runAsUser: 1000 runAsGroup: 1000 fsGroup: 1000 seccompProfile: type: RuntimeDefault containers: - name: registry image: docker.io/library/registry:3.1.2 env: - name: REGISTRY_STORAGE_DELETE_ENABLED value: "true" - name: OTEL_TRACES_EXPORTER value: none ports: - name: http containerPort: 5000 securityContext: allowPrivilegeEscalation: false readOnlyRootFilesystem: true capabilities: drop: - ALL resources: requests: cpu: 50m memory: 64Mi limits: memory: 256Mi volumeMounts: - name: data mountPath: /var/lib/registry livenessProbe: httpGet: path: /v2/ port: http periodSeconds: 20 readinessProbe: httpGet: path: /v2/ port: http periodSeconds: 10 volumes: - name: data persistentVolumeClaim: claimName: registry-data