Skip to content

Commit

Permalink
Add path condition on www-origin LB to route chat app in production
Browse files Browse the repository at this point in the history
  • Loading branch information
roch authored and kevindew committed Nov 7, 2024
1 parent 10dbd91 commit 73f2b96
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions charts/app-config/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2267,14 +2267,22 @@ govukApplications:
access_logs.s3.enabled=true,
access_logs.s3.bucket=govuk-{{ .Values.govukEnvironment }}-aws-logging,
access_logs.s3.prefix=elb/www-origin
alb.ingress.kubernetes.io/conditions.{{ .Release.Name }}: >
alb.ingress.kubernetes.io/conditions.{{ .Release.Name }}: &router-conditions >
[{"field": "host-header", "hostHeaderConfig": { "values": [
"www.{{ .Values.externalDomainSuffix }}",
"www-origin.{{ .Values.publishingDomainSuffix }}",
"www.{{ .Values.k8sExternalDomainSuffix }}"
"www-origin.{{ .Values.publishingDomainSuffix }}"
]}}]
alb.ingress.kubernetes.io/conditions.govuk-chat: *router-conditions
hosts:
- name: www-origin.{{ .Values.k8sExternalDomainSuffix }}
extraPaths:
- path: /chat
pathType: Prefix
backend:
service:
name: govuk-chat
port:
name: app
nginxConfigMap:
create: false
name: live-router-nginx-conf
Expand Down

0 comments on commit 73f2b96

Please sign in to comment.