all repos — infra @ 13d143bca8aeaec2447be2ee2089fdbb3bb01f27

infrastructure manifests and setup notes

apps/registry/registry.yaml (view raw)

 1apiVersion: apps/v1
 2kind: Deployment
 3metadata:
 4  name: registry
 5  labels:
 6    app: registry
 7spec:
 8  selector:
 9    matchLabels:
10      app: registry
11  template:
12    metadata:
13      labels:
14        app: registry
15    spec:
16      nodeSelector:
17        arch: "amd64"
18      containers:
19        - name: registry
20          image: registry
21          volumeMounts:
22            - name: repo
23              mountPath: "/var/lib/registry"
24            - name: auth
25              mountPath: "/auth"
26              readOnly: true
27          env:
28            - name: REGISTRY_AUTH
29              value: "htpasswd"
30            - name: REGISTRY_AUTH_HTPASSWD_REALM
31              value: "Registry Realm"
32            - name: REGISTRY_AUTH_HTPASSWD_PATH
33              value: "/auth/htpasswd"
34          ports:
35            - name: http
36              containerPort: 5000
37      volumes:
38        - name: repo
39          persistentVolumeClaim:
40            claimName: registry-repo
41        - name: auth
42          secret:
43            secretName: registry-auth
44---
45apiVersion: v1
46kind: Service
47metadata:
48  name: registry
49spec:
50  selector:
51    app: registry
52  ports:
53    - name: http
54      port: 5000
55      targetPort: 5000