From 071f40f01d428a11892d70a1ac03487eb5c36714 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Wed, 13 Aug 2025 19:57:26 -0500 Subject: [PATCH] zot ui --- services/zot/configmap.yaml | 24 +++++++++++++++--------- services/zot/deployment.yaml | 20 ++++---------------- 2 files changed, 19 insertions(+), 25 deletions(-) diff --git a/services/zot/configmap.yaml b/services/zot/configmap.yaml index 9c967c9..47a43db 100644 --- a/services/zot/configmap.yaml +++ b/services/zot/configmap.yaml @@ -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": {} } } diff --git a/services/zot/deployment.yaml b/services/zot/deployment.yaml index 2cdc0b7..ad4fa30 100644 --- a/services/zot/deployment.yaml +++ b/services/zot/deployment.yaml @@ -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 - -