Skip to content

Commit

Permalink
Merge pull request #38 from meisterplan/feature/allow-multiple-hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
itd-ndr authored Mar 7, 2023
2 parents aaccc12 + 02c509a commit a9b00f5
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# spring-service

## 3.11.0

- Allow multiple hosts for ingress resources, to allow URL migrations.

## 3.10.0

- Remove pod CPU limits
- Remove pod CPU limits

## 3.9.0

Expand Down
2 changes: 1 addition & 1 deletion charts/spring-service/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: spring-service
description: A generalized deployment for Meisterplan Spring Boot services in Kubernetes.
version: 3.10.0
version: 3.11.0
12 changes: 12 additions & 0 deletions charts/spring-service/templates/post-deployment/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,15 @@ spec:
name: {{ .Values.serviceName }}
port:
number: 80
{{- range $host := .Values.ingress.additionalHosts }}
- host: {{ $host }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ $.Values.serviceName }}
port:
number: 80
{{- end }}
1 change: 1 addition & 0 deletions charts/spring-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ resources:

ingress:
host: "" # Hostname under which the service is available, normally configured per deployment target
additionalHosts: [] # Some more hosts that should be used to make the service available

# Optional: Manual configuration of special timeouts for deployments.
timeouts:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,13 @@ spec:
name: myservice
port:
number: 80
- host: myservice.othercompany.tld
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: myservice
port:
number: 80
2 changes: 2 additions & 0 deletions tests/spring-service/complex-service/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ resources:

ingress:
host: "myservice.mycompany.tld"
additionalHosts:
- "myservice.othercompany.tld"
overwriteCustomHttpErrors: "502"
basicAuthSecretParameterName: myservice/auth

Expand Down

0 comments on commit a9b00f5

Please sign in to comment.