Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
Merge pull request #26 from Humanitec-DemoOrg/route
Browse files Browse the repository at this point in the history
New `route` support in Score
  • Loading branch information
mathieu-benoit authored Jan 19, 2024
2 parents 187c073 + 13d1afe commit 4127519
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
12 changes: 1 addition & 11 deletions humanitec.score.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
apiVersion: humanitec.org/v1b1

# Humanitec specific metadata
# In this case we are defining the ingress rules for the service
spec:
ingress:
rules:
"${resources.dns}": # This is the DNS record that we defined in the resources section
http:
"/":
type: prefix
port: 80
profile: humanitec/default-module
6 changes: 6 additions & 0 deletions score.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,11 @@ containers:
resources:
dns: # We need a DNS record to point to the service
type: dns
route: # We need a route attach to the DNS record
type: route
params:
host: ${resources.dns.host}
path: /
port: 80
db: # We need a database to store data
type: postgres

0 comments on commit 4127519

Please sign in to comment.