Files
2023-10-16 11:51:00 +03:00

54 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: zot-minimal
labels:
app: zot-minimal
spec:
replicas: 1
selector:
matchLabels:
app: zot-minimal
template:
metadata:
labels:
app: zot-minimal
spec:
containers:
- name: zot-minimal
image: zot-minimal:latest
imagePullPolicy: IfNotPresent
command: ["/usr/bin/zot"]
args: ["serve", "/zot-config/config.json"]
ports:
- name: zot-minimal
containerPort: 5050
protocol: TCP
volumeMounts:
- name: zot-config
mountPath: /zot-config
readOnly: false
- name: zot-exporter
image: zxp:latest
imagePullPolicy: IfNotPresent
command: ["/zxp"]
args: ["config", "/zot-config/zxp-config.json"]
ports:
- name: zot-exporter
containerPort: 5051
protocol: TCP
volumeMounts:
- name: zot-config
mountPath: /zot-config
readOnly: false
volumes:
- name: zot-config
configMap:
name: zot-config
items:
- key: zot_minimal.json
path: config.json
- key: zxp.json
path: zxp-config.json