Adding moritz as namespace for docker secreet

This commit is contained in:
Moritz Graf 2021-01-24 22:13:19 +01:00
parent fea6f04c0f
commit e8ed9b03fb
1 changed files with 4 additions and 3 deletions

View File

@ -123,7 +123,8 @@ 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): 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 ```sh
namespaces="datalab web" namespaces="datalab web moritz"
# the following is ONLY required to update the secret file!!
for i in $( echo $namespaces ) ; do for i in $( echo $namespaces ) ; do
kubectl create secret docker-registry registry-haumdaucher-de \ kubectl create secret docker-registry registry-haumdaucher-de \
-n $i \ -n $i \
@ -133,7 +134,7 @@ for i in $( echo $namespaces ) ; do
--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 # apply (may be executed as needed)
for i in $( echo $namespaces ) ; do for i in $( echo $namespaces ) ; do
kubectl apply -f ${i}/docker-pull.yaml.secret kubectl apply -f ${i}/docker-pull.yaml.secret
done done
@ -348,7 +349,7 @@ Using the [mailu helm chart](https://github.com/Mailu/helm-charts/tree/master/ma
helm repo add mailu https://mailu.github.io/helm-charts/ helm repo add mailu https://mailu.github.io/helm-charts/
helm repo update helm repo update
helm upgrade --install mailu mailu/mailu -n mailu -f mailu/mailu.secret.yml helm upgrade --install mailu mailu/mailu -n mailu -f mailu/mailu.secret.yml
helm upgrade --install mailu ../../mailu-helm-charts/mailu/ -n mailu -f mailu/mailu.secret.yml #helm upgrade --install mailu ../../mailu-helm-charts/mailu/ -n mailu -f mailu/mailu.secret.yml
helm template mailu ../../mailu-helm-charts/mailu/ -n mailu -f mailu/mailu.secret.yml helm template mailu ../../mailu-helm-charts/mailu/ -n mailu -f mailu/mailu.secret.yml
``` ```