mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 15:54:34 +07:00
refactor!: replace docker registry with Zot
This commit is contained in:
parent
4d6c67183e
commit
8d6cc2b84e
@ -1,7 +0,0 @@
|
||||
apiVersion: v2
|
||||
name: registry
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
- name: docker-registry
|
||||
version: 2.2.2
|
||||
repository: https://helm.twun.io
|
@ -1,46 +0,0 @@
|
||||
docker-registry:
|
||||
ingress:
|
||||
enabled: true
|
||||
className: nginx
|
||||
hosts:
|
||||
- &host registry.khuedoan.com
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
nginx.ingress.kubernetes.io/ssl-redirect: "true"
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||
tls:
|
||||
- secretName: registry-tls-certificate
|
||||
hosts:
|
||||
- *host
|
||||
extraVolumes:
|
||||
- name: auth
|
||||
emptyDir: {}
|
||||
extraVolumeMounts:
|
||||
- mountPath: /auth
|
||||
name: auth
|
||||
# TODO uncomment to enable auth
|
||||
# extraEnvVars:
|
||||
# - name: REGISTRY_AUTH
|
||||
# value: "htpasswd"
|
||||
# - name: REGISTRY_AUTH_HTPASSWD_REALM
|
||||
# value: "Registry Realm"
|
||||
# - name: REGISTRY_AUTH_HTPASSWD_PATH
|
||||
# value: "/auth/htpasswd"
|
||||
# initContainers:
|
||||
# - name: htpasswd
|
||||
# image: httpd:2-alpine
|
||||
# command:
|
||||
# - sh
|
||||
# - -c
|
||||
# - htpasswd -Bbn "${username}" "${password}" > /auth/htpasswd
|
||||
# envFrom:
|
||||
# - secretRef:
|
||||
# name: registry-admin-secret
|
||||
# volumeMounts:
|
||||
# - mountPath: /auth
|
||||
# name: auth
|
||||
persistence:
|
||||
enabled: true
|
||||
size: 10Gi
|
||||
garbageCollect:
|
||||
enabled: true
|
7
platform/zot/Chart.yaml
Normal file
7
platform/zot/Chart.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
apiVersion: v2
|
||||
name: registry
|
||||
version: 0.0.0
|
||||
dependencies:
|
||||
- name: zot
|
||||
version: 0.1.52
|
||||
repository: http://zotregistry.dev/helm-charts
|
20
platform/zot/values.yaml
Normal file
20
platform/zot/values.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
zot:
|
||||
ingress:
|
||||
enabled: true
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||
className: nginx
|
||||
hosts:
|
||||
- host: &host registry.khuedoan.com
|
||||
paths:
|
||||
- path: /
|
||||
tls:
|
||||
- secretName: zot-tls-certificate
|
||||
hosts:
|
||||
- *host
|
||||
# TODO enable auth
|
||||
persistence: true
|
||||
pvc:
|
||||
create: true
|
||||
storage: 10Gi
|
Loading…
Reference in New Issue
Block a user