From fe40d19696037a5ed8bb2aee6c74009366aa45a9 Mon Sep 17 00:00:00 2001 From: thweber <thomas.weber@wu.ac.at> Date: Fri, 6 May 2022 12:48:29 +0200 Subject: [PATCH] add maxTimeOut for ingress loadbalancer --- roles/rke2/templates/manifests/config-nginx-ingress.j2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/rke2/templates/manifests/config-nginx-ingress.j2 b/roles/rke2/templates/manifests/config-nginx-ingress.j2 index aca7652..e1dfb59 100644 --- a/roles/rke2/templates/manifests/config-nginx-ingress.j2 +++ b/roles/rke2/templates/manifests/config-nginx-ingress.j2 @@ -68,6 +68,10 @@ spec: #loadbalancer.openstack.org/health-monitor-timeout: "30" #loadbalancer.openstack.org/health-monitor-max-retries: "5" {% endif %} +{% if item.value.maxTimeOut is defined %} + loadbalancer.openstack.org/timeout-client-data: {{ item.value.maxTimeOut | string | tojson }} + loadbalancer.openstack.org/timeout-member-data: {{ item.value.maxTimeOut |Â string | tojson }} +{% endif %} {% elif item.value.metallbAddressPool is defined and item.value.metallbAddressPool | length > 0 %} annotations: metallb.universe.tf/address-pool: {{ item.value.metallbAddressPool }} -- GitLab