From 170e6ffa73f0262f637c0657e338fe2fd84f488d Mon Sep 17 00:00:00 2001 From: safouenebg Date: Thu, 23 May 2024 09:46:07 +0000 Subject: [PATCH] ingress_vars_update --- group_vars/safouene | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/group_vars/safouene b/group_vars/safouene index a00a53a..da31cbc 100644 --- a/group_vars/safouene +++ b/group_vars/safouene @@ -21,11 +21,12 @@ haproxy: frontend: "{{ k8s_frontend_name }}" mode: tcp servers: - - "server {{ groups[group][0] }} {{ hostvars[groups[group][0]].ansible_host }}:80 check" - - "server {{ groups[group][1] }} {{ hostvars[groups[group][1]].ansible_host }}:80 check" - - "server {{ groups[group][2] }} {{ hostvars[groups[group][2]].ansible_host }}:80 check" + - "server {{ groups[group][0] }} {{ hostvars[groups[group][0]].ansible_host }}:{{ NodePort }} check" + - "server {{ groups[group][1] }} {{ hostvars[groups[group][1]].ansible_host }}:{{ NodePort }} check" + - "server {{ groups[group][2] }} {{ hostvars[groups[group][2]].ansible_host }}:{{ NodePort }} check" #vars k8s_master_groupname: master k8s_worker_groupname: worker +NodePort: 31000