Updating docker secret to be used in multiple namespaces

This commit is contained in:
Moritz Graf 2021-01-24 22:15:31 +01:00
parent 378e780213
commit 56169f7277
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ helm upgrade --install --create-namespace docker-registry stable/docker-registry
Create credentials secret [according to docu](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/#create-a-secret-by-providing-credentials-on-the-command-line):
```sh
namespaces="datalab web moritz"
namespaces="datalab moritz"
# the following is ONLY required to update the secret file!!
for i in $( echo $namespaces ) ; do
kubectl create secret docker-registry registry-haumdaucher-de \
@ -136,7 +136,7 @@ for i in $( echo $namespaces ) ; do
done
# apply (may be executed as needed)
for i in $( echo $namespaces ) ; do
kubectl apply -f ${i}/docker-pull.yaml.secret
kubectl apply -f datalab/docker-pull.yaml.secret -n $i
done
```

Binary file not shown.