Adding docker pull secret

This commit is contained in:
Moritz Graf 2020-04-05 22:13:29 +02:00
parent b5f56ece07
commit 62af92be61
3 changed files with 13 additions and 10 deletions

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
*.secret filter=git-crypt diff=git-crypt

View File

@ -8,14 +8,11 @@ This folder holds all the services required for my private infrastructure. Follo
## namespaces
```yaml
k create ns flux
k create ns cert-manager
k create ns nginx-ingress
k create ns infrapuzzle
k create ns kuard
k create ns auth
k create nextcloud
```sh
namespaces="flux cert-manager nginx-ingress infrapuzzle kuard auth nextcloud datalab"
for i in $( echo $NAMESPACES ) ; do
k create ns $i
done
```
## [helm-operator](https://github.com/fluxcd/helm-operator/blob/master/chart/helm-operator/README.md)
@ -93,13 +90,18 @@ Create credentials secret [according to docu](https://kubernetes.io/docs/tasks/c
```sh
namespaces="datalab"
for i in $namespaces ; do
kubectl create secret docker-registry regcred \
for i in $( echo $namespaces ) ; do
kubectl create secret docker-registry hub-moritzgraf-de \
-n $i \
--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
# apply
for i in $( echo $namespaces ) ; do
kubectl apply -f ${i}/docker-pull.yaml.secret
done
```

Binary file not shown.