Initial commit

This commit is contained in:
2022-05-20 20:48:03 +02:00
commit 1cf24ffec9
7 changed files with 302 additions and 0 deletions

30
README.md Normal file
View File

@@ -0,0 +1,30 @@
# CMP-LAB
## Setup
```bash
sh ./install_helm.sh
sh ./install_repos.sh
```
### Longhorn (storage)
```bash
helm install longhorn longhorn/longhorn --namespace longhorn-system --create-namespace
kubectl patch storageclass standard -p '{"metadata": {"annotations":{"storageclass.kubernetes.io/is-default-class":"false"}}}'
```
### MetalLB (loadbalancer)
```bash
kubectl apply -f ./deployments/metallb-prep.yml
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.12.1/manifests/namespace.yaml
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.12.1/manifests/metallb.yaml
```
### Traefik (ingress)
```bash
kubectl apply -f ./deployments/traefik-prep.yml
helm install traefik traefik/traefik --namespace=traefik --values=./values-files/traefik-values.yaml --create-namespace
```
### Nginx
```bash
kubectl apply -f ./deployments/nginx.yml
```