๐Ÿ“ฆ kurokobo / awx-on-k3s

๐Ÿ“„ deployment.yaml ยท 37 lines
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---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: registry
  labels:
    app: registry
spec:
  replicas: 1
  selector:
    matchLabels:
      app: registry
  template:
    metadata:
      labels:
        app: registry
    spec:
      containers:
        - name: registry
          image: registry:latest
          ports:
            - containerPort: 5000
              protocol: TCP
          volumeMounts:
            - name: registry-volume
              mountPath: /var/lib/registry
            - name: registry-config
              mountPath: /etc/docker/registry
      volumes:
        - name: registry-volume
          persistentVolumeClaim:
            claimName: registry-claim
        - name: registry-config
          configMap:
            defaultMode: 420
            name: registry-configmap