Adding git secret in datalab namespace
This commit is contained in:
parent
786849ed82
commit
b5f56ece07
|
|
@ -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.
Loading…
Reference in New Issue