From 3a330e494334254ee15d2090df96d792efc3160d Mon Sep 17 00:00:00 2001 From: tabjer Date: Mon, 12 Jul 2021 09:09:01 +0800 Subject: [PATCH] Added default ingress_path, made it an overridable var --- roles/installer/defaults/main.yml | 2 +- roles/installer/templates/ingress.yaml.j2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/installer/defaults/main.yml b/roles/installer/defaults/main.yml index 8a16f621..ab86fe09 100644 --- a/roles/installer/defaults/main.yml +++ b/roles/installer/defaults/main.yml @@ -9,7 +9,7 @@ database_username: "{{ deployment_type }}" task_privileged: false service_type: ClusterIP ingress_type: none - +ingress_path: '/' # Add annotations to the service account. Specify as literal block. E.g.: # service_account_annotations: | # eks.amazonaws.com/role-arn: arn:aws:iam:::role/ diff --git a/roles/installer/templates/ingress.yaml.j2 b/roles/installer/templates/ingress.yaml.j2 index 6bd586c4..a93cd7b5 100644 --- a/roles/installer/templates/ingress.yaml.j2 +++ b/roles/installer/templates/ingress.yaml.j2 @@ -20,7 +20,7 @@ spec: - host: '{{ hostname }}' http: paths: - - path: / + - path: '{{ ingress_path }}' backend: serviceName: '{{ meta.name }}-service' servicePort: 80