Skip to content

Commit

Permalink
Merge pull request #11 from NBISweden/tls-config
Browse files Browse the repository at this point in the history
ingress host and service port fix
  • Loading branch information
darthvader2 authored Apr 4, 2024
2 parents 0c44d39 + 7777d8a commit d206da7
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/landing-pages-chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.1.2

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
8 changes: 5 additions & 3 deletions charts/landing-pages-chart/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/upstream-vhost: {{ .Values.s3Host}}
cert-manager.io/cluster-issuer: {{ .Values.clusterIssuer }}
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/upstream-vhost: {{ .Values.s3Host }}
nginx.ingress.kubernetes.io/secure-backends: "true"
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
nginx.ingress.kubernetes.io/rewrite-log: "true"
nginx.ingress.kubernetes.io/rewrite-target: {{ .Values.bucketUrl }}/$1
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/app-root: /index.html
Expand All @@ -20,7 +21,8 @@ spec:
secretName: {{ .Values.secretName }}
{{ end }}
rules:
- http:
- host: {{ .Values.domainName }}
http:
paths:
- backend:
service:
Expand Down
6 changes: 5 additions & 1 deletion charts/landing-pages-chart/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ metadata:
spec:
externalName: {{ .Values.s3Host }}
sessionAffinity: None
type: ExternalName
type: ExternalName
ports:
- port: 443
protocol: TCP
targetPort: 443
3 changes: 2 additions & 1 deletion charts/landing-pages-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ bucketUrl:

tls: false
domainName:
secretName:
secretName:
clusterIssuer:
2 changes: 1 addition & 1 deletion web/config.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
baseurl = "https://foo.bar.com"
baseurl = "https://lp.bp.nbis.se"
title = "Bigpicture datasets"
languageCode = "en-us"

Expand Down

0 comments on commit d206da7

Please sign in to comment.