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