-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CDPT-1247 Add temp ingress and add some ewwio config. (#722)
Add temp ingress and add some ewwio config.
- Loading branch information
1 parent
c2df83c
commit 972a1f3
Showing
3 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,40 @@ | ||
# Intentionally empty file. | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: intranet-production-ingress | ||
namespace: intranet-production | ||
annotations: | ||
external-dns.alpha.kubernetes.io/set-identifier: intranet-production-ingress-intranet-production-green | ||
external-dns.alpha.kubernetes.io/aws-weight: "100" | ||
nginx.ingress.kubernetes.io/auth-type: basic | ||
nginx.ingress.kubernetes.io/auth-secret: basic-auth-secret | ||
nginx.ingress.kubernetes.io/auth-realm: 'Production Access | Authentication Required' | ||
# Set vhost so that WP doesn't see prod-intranet.apps... and redirect. | ||
nginx.ingress.kubernetes.io/upstream-vhost: intranet.justice.gov.uk | ||
nginx.ingress.kubernetes.io/server-snippet: | | ||
location = /health { | ||
auth_basic off; | ||
access_log off; | ||
default_type text/plain; | ||
add_header Content-Type text/plain; | ||
return 200 "OK"; | ||
} | ||
location = /.well-known/security.txt { | ||
auth_basic off; | ||
return 301 https://raw.githubusercontent.com/ministryofjustice/security-guidance/main/contact/vulnerability-disclosure-security.txt; | ||
} | ||
spec: | ||
tls: | ||
- hosts: | ||
- prod-intranet.apps.live.cloud-platform.service.justice.gov.uk | ||
rules: | ||
- host: prod-intranet.apps.live.cloud-platform.service.justice.gov.uk | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: nginx-service | ||
port: | ||
number: 8080 |