~sbaildon/dev_cluster

ref: dcdef6b0d7f5e3ec72a2b446205e0d8a97f6baf8 dev_cluster/container-registry/deployment.yaml -rw-r--r-- 1.0 KiB
dcdef6b0Sean Baildon plausible restart on failure only 2 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
apiVersion: apps/v1
kind: Deployment
metadata:
  name: registry
  labels:
    app: registry
spec:
  selector:
    matchLabels:
      app: registry
  replicas: 1
  strategy:
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: registry
    spec:
      volumes:
        - name: config
          secret:
            secretName: registry-config
            items:
              - key: registry-config.yml
                path: config.yml
        - name: htpasswd
          secret:
            secretName: registry-creds
            items:
              - key: HTPASSWD
                path: htpasswd
      containers:
        - name: registry
          image: registry:2.7.1
          imagePullPolicy: Always
          ports:
            - name: registry
              containerPort: 5000
              protocol: TCP
          volumeMounts:
            - name: config
              mountPath: /etc/docker/registry
              readOnly: true
            - name: htpasswd
              mountPath: /auth
              readOnly: true