mirror of
https://github.com/project-zot/zot.git
synced 2025-01-06 22:40:28 -05:00
12227b4484
Signed-off-by: Alexei Dodon <adodon@cisco.com>
53 lines
1.3 KiB
YAML
53 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
|
|
|