From f92d00ff987cd661225809d95ad683d546a60238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20THERIN?= Date: Wed, 16 Feb 2022 11:43:00 +0100 Subject: [PATCH] docs(k8s): document loadbalancer in zone (#1095) --- docs/resources/k8s_cluster.md | 8 ++++++++ 1 file changed, 8 insertions(+) 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"