Adding git secret in datalab namespace

This commit is contained in:
Moritz Graf 2020-04-05 21:55:26 +02:00
parent 786849ed82
commit b5f56ece07
2 changed files with 20 additions and 1 deletions

View File

@ -84,3 +84,22 @@ Migate
Backup Backup
## Add private docker registry
*Current state:* Registry of hub.moritzgraf.de:5000 is used.
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"
for i in $namespaces ; do
kubectl create secret docker-registry regcred \
--docker-server=hub.moritzgraf.de:5000 \
--docker-username=moritz \
--docker-password='xxx' \
--docker-email=moritz@moritzgraf.de \
--dry-run -o yaml > ./${i}/docker-pull.yaml.secret
done
```

Binary file not shown.