zotregistry.dev/zot@v1.4.4-0.20240314164342-eec277e14d20/examples/metrics/kubernetes/zot-minimal/deployment.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: zot-minimal 5 labels: 6 app: zot-minimal 7 spec: 8 replicas: 1 9 selector: 10 matchLabels: 11 app: zot-minimal 12 template: 13 metadata: 14 labels: 15 app: zot-minimal 16 spec: 17 containers: 18 - name: zot-minimal 19 image: zot-minimal:latest 20 imagePullPolicy: IfNotPresent 21 command: ["/usr/bin/zot"] 22 args: ["serve", "/zot-config/config.json"] 23 ports: 24 - name: zot-minimal 25 containerPort: 5050 26 protocol: TCP 27 volumeMounts: 28 - name: zot-config 29 mountPath: /zot-config 30 readOnly: false 31 - name: zot-exporter 32 image: zxp:latest 33 imagePullPolicy: IfNotPresent 34 command: ["/zxp"] 35 args: ["config", "/zot-config/zxp-config.json"] 36 ports: 37 - name: zot-exporter 38 containerPort: 5051 39 protocol: TCP 40 volumeMounts: 41 - name: zot-config 42 mountPath: /zot-config 43 readOnly: false 44 volumes: 45 - name: zot-config 46 configMap: 47 name: zot-config 48 items: 49 - key: zot_minimal.json 50 path: config.json 51 - key: zxp.json 52 path: zxp-config.json 53