zot ui
This commit is contained in:
parent
7dc20737bf
commit
071f40f01d
@ -1,4 +1,3 @@
|
||||
# services/zot/configmap.yaml
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
@ -7,24 +6,31 @@ metadata:
|
||||
data:
|
||||
config.json: |
|
||||
{
|
||||
"storage": { "rootDirectory": "/var/lib/registry" },
|
||||
"log": { "level": "info" },
|
||||
"storage": {
|
||||
"rootDirectory": "/var/lib/registry",
|
||||
"dedupe": true,
|
||||
"gc": true,
|
||||
"gcDelay": "1h",
|
||||
"gcInterval": "24h"
|
||||
},
|
||||
"http": {
|
||||
"address": "0.0.0.0",
|
||||
"port": "5000",
|
||||
"auth": {
|
||||
"htpasswd": {
|
||||
"path": "/etc/zot/htpasswd"
|
||||
}
|
||||
"htpasswd": { "path": "/etc/zot/htpasswd" }
|
||||
},
|
||||
"accessControl": {
|
||||
"repositories": {
|
||||
"**": {
|
||||
"anonymousPolicy": ["read"],
|
||||
"defaultPolicy": ["read"],
|
||||
"policies": []
|
||||
"DefaultPolicy": ["read"],
|
||||
"AnonymousPolicy": ["read"]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"log": { "level": "info" },
|
||||
"extensions": {
|
||||
"search": {},
|
||||
"ui": {}
|
||||
}
|
||||
}
|
||||
|
||||
@ -14,11 +14,10 @@ spec:
|
||||
labels: { app: zot }
|
||||
spec:
|
||||
nodeSelector:
|
||||
node-role.kubernetes.io/worker: "true"
|
||||
kubernetes.io/arch: arm64
|
||||
containers:
|
||||
- name: zot
|
||||
image: ghcr.io/project-zot/zot-linux-arm64:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
args: ["serve", "/etc/zot/config.json"]
|
||||
ports:
|
||||
- { name: http, containerPort: 5000 }
|
||||
@ -34,33 +33,22 @@ spec:
|
||||
- name: zot-data
|
||||
mountPath: /var/lib/registry
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /v2/
|
||||
port: http
|
||||
httpGet: { path: /v2/, port: http }
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /v2/
|
||||
port: http
|
||||
httpGet: { path: /v2/, port: http }
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 20
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
requests: { cpu: "50m", memory: "64Mi" }
|
||||
volumes:
|
||||
- name: cfg
|
||||
configMap:
|
||||
name: zot-config
|
||||
items:
|
||||
- key: config.json
|
||||
path: config.json
|
||||
- name: htpasswd
|
||||
secret:
|
||||
secretName: zot-htpasswd
|
||||
- name: zot-data
|
||||
persistentVolumeClaim:
|
||||
claimName: zot-data
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user