zhong (钟鹏群) 1 mese fa
parent
commit
2139f30268
2 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. 1 0
      k3s-yamls/htpasswd
  2. 9 0
      k3s-yamls/registry-secret.yaml

+ 1 - 0
k3s-yamls/htpasswd

@@ -0,0 +1 @@
+admin:zpq123456

+ 9 - 0
k3s-yamls/registry-secret.yaml

@@ -0,0 +1,9 @@
+apiVersion: v1
+kind: Secret
+metadata:
+  name: registry-auth
+  namespace: registry
+type: Opaque
+data:
+  # 注意:这里要填 base64 编码后的 htpasswd 内容
+  htpasswd: YWRtaW46JDJ5JDEwJEs4NlE4NnkycU5VUWdCM3lEMlEuN1k5N2w4cW9hRTlGcWp3bXlLaQ==