diff --git a/docs/resources/k8s_cluster.md b/docs/resources/k8s_cluster.md index 182fa793db..661ca8b933 100644 --- a/docs/resources/k8s_cluster.md +++ b/docs/resources/k8s_cluster.md @@ -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" { @@ -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"