Registry add TLS and authentication support (#8229)

* Add registry TLS support

* Add registry configmap and htpasswd auth
This commit is contained in:
zhengtianbao
2021-12-07 10:32:00 -06:00
committed by GitHub
parent 990ca38d21
commit 4ef2cf4c28
5 changed files with 98 additions and 0 deletions

View File

@@ -5,3 +5,27 @@ registry_storage_access_mode: "ReadWriteOnce"
registry_disk_size: "10Gi"
registry_port: 5000
registry_replica_count: 1
# name of kubernetes secret for registry TLS certs
registry_tls_secret: ""
registry_htpasswd: ""
# registry configuration
# see: https://docs.docker.com/registry/configuration/#list-of-configuration-options
registry_config:
version: 0.1
log:
fields:
service: registry
storage:
cache:
blobdescriptor: inmemory
http:
addr: :{{ registry_port }}
headers:
X-Content-Type-Options: [nosniff]
health:
storagedriver:
enabled: true
interval: 10s
threshold: 3