registry
This commit is contained in:
1 parent
61643c4c72
commit
7572d1b794
3 files changed
+145
-33
No files matched your search
@@ -11,7 +11,7 @@ htpasswd() {
|
||||
htpasswd -Bbn ${1} ${2} | head -n 1 2> /dev/null\""
|
||||
}
|
||||
|
||||
K3S_HOST=strix.systems
|
||||
K3S_HOST=ntwl.xyz
|
||||
REGISTRY_ADMIN=ntr
|
||||
REGISTRY_PASSWORD=$(gen_password)
|
||||
REGISTRY_AUTH=$(htpasswd ${REGISTRY_ADMIN} ${REGISTRY_PASSWORD})
|
||||
@@ -24,7 +24,7 @@ echo REGISTRY_AUTH is ${REGISTRY_AUTH}
|
||||
echo REGISTRY_HTTP_SECRET is ${REGISTRY_HTTP_SECRET}
|
||||
|
||||
kubectl create secret generic registry \
|
||||
-n ops
|
||||
-n ops \
|
||||
--from-literal=REGISTRY_ADMIN=${REGISTRY_ADMIN} \
|
||||
--from-literal=REGISTRY_PASSWORD=${REGISTRY_PASSWORD} \
|
||||
--from-literal=REGISTRY_HTTP_SECRET=${REGISTRY_HTTP_SECRET} \
|
||||
@@ -32,11 +32,11 @@ kubectl create secret generic registry \
|
||||
|
||||
# cat <<EOF | ssh root@strix tee /etc/rancher/k3s/registries.yaml
|
||||
# mirrors:
|
||||
# registry.strix.systems:
|
||||
# registry.ntwl.xyz:
|
||||
# endpoint:
|
||||
# - "https://registry.strix.systems"
|
||||
# - "https://registry.ntwl.xyz"
|
||||
# configs:
|
||||
# "registry.strix.systems":
|
||||
# "registry.ntwl.xyz":
|
||||
# auth:
|
||||
# username: ntr
|
||||
# password: pw
|
||||
|
||||
Reference in new issue
Block a user