Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ sudo apt-get install -y kubectl=1.32.*
#### K3s
K3s is a lightweight Kubernetes distribution. We will install it.
```shell
curl -sfL https://get.k3s.io | INSTALL_K3S_CHANNEL=v1.32 INSTALL_K3S_EXEC="server --disable traefik" sh -
curl -sfL https://get.k3s.io | INSTALL_K3S_CHANNEL=v1.32 INSTALL_K3S_EXEC="server --disable traefik --disable servicelb" sh -
```

##### Configure kubectl
Expand Down Expand Up @@ -89,7 +89,8 @@ helm upgrade --install ingress -n ingress --create-namespace ingress-nginx/ingre
--set controller.ingressClass=ngnix \
--set controller.ingressClassResource.name=ngnix \
--set controller.ingressClassResource.enabled=true \
--set controller.ingressClassResource.default=true
--set controller.ingressClassResource.default=true \
--set controller.service.externalTrafficPolicy=Local
```

### MetalLB
Expand All @@ -98,6 +99,33 @@ MetalLB allows us to give each externally avalible service a seperate IP.
helm repo add metallb https://metallb.github.io/metallb
helm install metallb metallb/metallb -n metallb --create-namespace
```
Create the following files. Adjust the IP range here with one that fits your subnet.
`ipaddresspool.yaml`:
```yaml
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: first-pool
namespace: metallb
spec:
addresses:
- 192.168.1.240-192.168.1.250
```
`l2advertisement.yaml`:
```yaml
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: example
namespace: metallb
spec:
ipAddressPools:
- first-pool
```
```shell
kubectl apply -f ipaddresspool.yaml
kubectl apply -f l2advertisement.yaml
```

### Metrics
#### Prometheus
Expand Down