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

@@ -0,0 +1,10 @@
apiVersion: v1
kind: Secret
metadata:
name: registry-secret
namespace: {{ registry_namespace }}
type: Opaque
data:
{% if registry_htpasswd != "" %}
htpasswd: {{ registry_htpasswd | b64encode }}
{% endif %}