Skip to content

Commit

Permalink
generic ingress path rules for greater compatiability across ingress …
Browse files Browse the repository at this point in the history
…controllers/clouds
  • Loading branch information
KyleOps committed Mar 14, 2024
1 parent 33a66b8 commit 33415eb
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 10 deletions.
6 changes: 6 additions & 0 deletions infra/aws-impl/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,11 @@ resource "kubernetes_manifest" "ingress" {
namespace = local.namespace

}))

field_manager {
name = "ingress-${local.namespace}"
# force_conflicts = true
}

depends_on = [module.inferno]
}
49 changes: 39 additions & 10 deletions infra/aws-impl/manifests/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,53 @@ spec:
- host: inferno.hl7.org.au
http:
paths:
- path: /validator(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: inferno-fhir-validator
port:
number: 80
- path: /validatorapi(/|$)(.*)
pathType: ImplementationSpecific
- path: /validatorapi
pathType: Prefix
backend:
service:
name: inferno-validator
port:
number: 4567
- path: /
- path: /validator
pathType: Prefix
backend:
service:
name: inferno-fhir-validator
port:
number: 80
- path: /
pathType: Prefix
backend:
service:
name: inferno
port:
number: 4567

# https://kubernetes.github.io/ingress-nginx/user-guide/ingress-path-matching/
# /validatorapi(/|$)(.*) for nginx or /validator/* gke for implementation specific
# /validatorapi(/|$)(.*) for nginx or /validator/* gke for implementation specific
# /(.*) nginx or /* gke for implementation specific

# original
# paths:
# - path: /validator/*
# backend:
# service:
# name: inferno-fhir-validator
# port:
# number: 80
# pathType: ImplementationSpecific
# - path: /validatorapi/*
# backend:
# service:
# name: inferno-validator
# port:
# number: 4567
# pathType: ImplementationSpecific
# - path: /*
# backend:
# service:
# name: inferno
# port:
# number: 4567
# pathType: ImplementationSpecific

0 comments on commit 33415eb

Please sign in to comment.