Adding secrets for registry
This commit is contained in:
+21
-3
@@ -19,7 +19,7 @@ kubectl get pods | grep Error | cut -d' ' -f 1 | xargs kubectl delete pod
|
||||
## namespaces
|
||||
|
||||
```sh
|
||||
namespaces="flux cert-manager nginx-ingress infrapuzzle kuard auth nextcloud datalab"
|
||||
namespaces="flux cert-manager nginx-ingress infrapuzzle kuard auth nextcloud datalab web development"
|
||||
for i in $( echo $NAMESPACES ) ; do
|
||||
k create ns $i
|
||||
done
|
||||
@@ -96,6 +96,19 @@ Backup
|
||||
|
||||
*Current state:* Registry of hub.moritzgraf.de:5000 is used.
|
||||
|
||||
```sh
|
||||
# create secret base64 encoded
|
||||
USER="moritz"
|
||||
PASSWORD="password"
|
||||
docker run --entrypoint htpasswd --rm registry:2 -Bbn admin admin123 | base64
|
||||
# use the output and put it in development/registry.secret.yaml
|
||||
kubectl apply -f development/registry.yaml
|
||||
|
||||
```
|
||||
|
||||
|
||||
### after
|
||||
|
||||
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
|
||||
@@ -118,6 +131,11 @@ done
|
||||
## Add mopbot & corona & corona-api
|
||||
|
||||
```sh
|
||||
kubectl apply -f datalab/mopbot.yaml
|
||||
kubectl apply -f datalab/corona-api.yaml
|
||||
kubectl apply -f datalab/
|
||||
```
|
||||
|
||||
## Web
|
||||
|
||||
```sh
|
||||
kubectl apply -f web/
|
||||
```
|
||||
Reference in New Issue
Block a user