feat(LoadBalancer): Adding MetalLB

This commit is contained in:
Vegard Hagen
2022-09-18 20:00:59 +02:00
parent c8561e74c2
commit 5a716387a8
6 changed files with 153 additions and 95 deletions
+15 -2
View File
@@ -35,9 +35,9 @@ cri-ctl: https://github.com/kubernetes-sigs/cri-tools
nerdctl?
We are going to use Cilium kube-proxy
We are going to use Cilium kube-proxy (TODO)
```shell
sudo kubeadm init --skip-phases=addon/kube-proxy
sudo kubeadm init --skip-phases=addon/kube-proxy (TODO)
sudo kubeadm init
```
@@ -80,6 +80,12 @@ kubectl -n kube-system get pods --watch
kubectl -n kube-system get pods -l k8s-app=cilium
```
## MetalLB
```shell
helm repo add metallb https://metallb.github.io/metallb
helm install metallb metallb/metallb
```
## Deploy using Terraform
https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/guides/getting-started
```shell
@@ -87,6 +93,13 @@ terraform plan
terraform apply
```
## Traefik IngressRoute CRD
https://doc.traefik.io/traefik/v2.0/routing/providers/kubernetes-crd/
```shell
```
## Cleanup
```shell
kubectl drain ratatoskr --delete-emptydir-data --force --ignore-daemonsets