Skip to content

Commit

Permalink
docs(k8s): document loadbalancer in zone (scaleway#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtherin authored Feb 16, 2022
1 parent a9ba7e6 commit f92d00f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/resources/k8s_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ provider "helm" {
}
resource "scaleway_lb_ip" "nginx_ip" {
zone = "fr-par-1"
project_id = scaleway_k8s_cluster.joy.project_id
}
resource "helm_release" "nginx_ingress" {
Expand All @@ -159,6 +161,12 @@ resource "helm_release" "nginx_ingress" {
value = "true"
}
// indicates in which zone to create the loadbalancer
set {
name = "controller.service.annotations.service\\.beta\\.kubernetes\\.io/scw-loadbalancer-zone"
value = scaleway_lb_ip.nginx_ip.zone
}
// enable to avoid node forwarding
set {
name = "controller.service.externalTrafficPolicy"
Expand Down

0 comments on commit f92d00f

Please sign in to comment.