Adding docker pull secret
This commit is contained in:
parent
b5f56ece07
commit
62af92be61
|
|
@ -0,0 +1 @@
|
||||||
|
*.secret filter=git-crypt diff=git-crypt
|
||||||
|
|
@ -8,14 +8,11 @@ This folder holds all the services required for my private infrastructure. Follo
|
||||||
|
|
||||||
## namespaces
|
## namespaces
|
||||||
|
|
||||||
```yaml
|
```sh
|
||||||
k create ns flux
|
namespaces="flux cert-manager nginx-ingress infrapuzzle kuard auth nextcloud datalab"
|
||||||
k create ns cert-manager
|
for i in $( echo $NAMESPACES ) ; do
|
||||||
k create ns nginx-ingress
|
k create ns $i
|
||||||
k create ns infrapuzzle
|
done
|
||||||
k create ns kuard
|
|
||||||
k create ns auth
|
|
||||||
k create nextcloud
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## [helm-operator](https://github.com/fluxcd/helm-operator/blob/master/chart/helm-operator/README.md)
|
## [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
|
```sh
|
||||||
namespaces="datalab"
|
namespaces="datalab"
|
||||||
for i in $namespaces ; do
|
for i in $( echo $namespaces ) ; do
|
||||||
kubectl create secret docker-registry regcred \
|
kubectl create secret docker-registry hub-moritzgraf-de \
|
||||||
|
-n $i \
|
||||||
--docker-server=hub.moritzgraf.de:5000 \
|
--docker-server=hub.moritzgraf.de:5000 \
|
||||||
--docker-username=moritz \
|
--docker-username=moritz \
|
||||||
--docker-password='xxx' \
|
--docker-password='xxx' \
|
||||||
--docker-email=moritz@moritzgraf.de \
|
--docker-email=moritz@moritzgraf.de \
|
||||||
--dry-run -o yaml > ./${i}/docker-pull.yaml.secret
|
--dry-run -o yaml > ./${i}/docker-pull.yaml.secret
|
||||||
done
|
done
|
||||||
|
# apply
|
||||||
|
for i in $( echo $namespaces ) ; do
|
||||||
|
kubectl apply -f ${i}/docker-pull.yaml.secret
|
||||||
|
done
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Reference in New Issue