Skip to content

Commit

Permalink
docs: traefik and ingress-nginx lb of k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
revant committed Feb 19, 2025
1 parent cde1341 commit 3a9e75f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions docs/kubernetes-loadbalancer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Create Traefik LoadBalancer Service

```shell
helm repo add traefik https://traefik.github.io/charts
helm repo update
helm install --namespace traefik --create-namespace traefik traefik/traefik
```

For Internal LB add appropriate annotation as per your cloud provider. e.g. Digitalocean:

```shell
helm upgrade --install --namespace traefik --create-namespace --set service.annotations."service\.beta\.kubernetes\.io/do-loadbalancer-network"="INTERNAL" traefik traefik/traefik
```

# Create kubernetes/ingress-nginx LoadBalancer Service

```shell
helm upgrade --install ingress-nginx ingress-nginx \
--repo https://kubernetes.github.io/ingress-nginx \
--namespace ingress-nginx --create-namespace
```

For Internal LB add appropriate annotation as per your cloud provider. e.g. Digitalocean:

```shell
helm upgrade --install ingress-nginx ingress-nginx \
--repo https://kubernetes.github.io/ingress-nginx \
--namespace ingress-nginx --create-namespace \
--set service.annotations."service\.beta\.kubernetes\.io/do-loadbalancer-network"="INTERNAL"
```

Reference:

- https://github.com/traefik/traefik-helm-chart/blob/master/traefik/values.yaml
- https://kubernetes.github.io/ingress-nginx/deploy/#quick-start
- https://docs.digitalocean.com/products/kubernetes/how-to/configure-load-balancers/#internal-load-balancer

0 comments on commit 3a9e75f

Please sign in to comment.