Updating docker secret to be used in multiple namespaces
This commit is contained in:
parent
378e780213
commit
56169f7277
|
|
@ -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.
Loading…
Reference in New Issue