-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: traefik and ingress-nginx lb of k8s
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |