Skip to content

Commit

Permalink
Merge pull request #45 from alphagov/add-find-annotations
Browse files Browse the repository at this point in the history
Add find ingress condition for Find and remove TLS
  • Loading branch information
kentsanggds authored Nov 27, 2023
2 parents 3dbba79 + 7349047 commit 0cadf5b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
6 changes: 4 additions & 2 deletions charts/app-of-apps/values-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,10 @@ datagovukHelmValues:
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS": 443}]'
alb.ingress.kubernetes.io/ssl-redirect: "443"
tls:
enabled: true
alb.ingress.kubernetes.io/conditions.datagovuk-find: >
[{"field": "host-header", "hostHeaderConfig": { "values": [
"www.integration.data.gov.uk"
]}}]
opensearch:
replicaCount: 1
externalSecret:
Expand Down
8 changes: 5 additions & 3 deletions charts/app-of-apps/values-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ datagovukHelmValues:
org:
schedule: "*/10 * * * *"
find:
replicaCount: 1
replicaCount: 2
args: [ "bin/rails s -b 0.0.0.0" ]
ingress:
host: find.eks.production.govuk.digital
Expand All @@ -85,8 +85,10 @@ datagovukHelmValues:
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS": 443}]'
alb.ingress.kubernetes.io/ssl-redirect: "443"
tls:
enabled: true
alb.ingress.kubernetes.io/conditions.datagovuk-find: >
[{"field": "host-header", "hostHeaderConfig": { "values": [
"www.data.gov.uk"
]}}]
opensearch:
replicaCount: 1
externalSecret:
Expand Down
6 changes: 4 additions & 2 deletions charts/app-of-apps/values-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ datagovukHelmValues:
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS": 443}]'
alb.ingress.kubernetes.io/ssl-redirect: "443"
tls:
enabled: true
alb.ingress.kubernetes.io/conditions.datagovuk-find: >
[{"field": "host-header", "hostHeaderConfig": { "values": [
"www.staging.data.gov.uk"
]}}]
opensearch:
replicaCount: 1
externalSecret:
Expand Down
5 changes: 0 additions & 5 deletions charts/datagovuk/templates/find/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,5 @@ spec:
name: {{ $.Release.Name }}-find
port:
number: 3000
{{- if .tls.enabled }}
tls:
- hosts:
- {{ .host }}
{{- end }}
{{- end }}
{{- end }}

0 comments on commit 0cadf5b

Please sign in to comment.