feat: add platform deployment artifacts
This commit is contained in:
29
score.yaml
Normal file
29
score.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
apiVersion: score.dev/v1b1
|
||||
containers:
|
||||
test-siva-node-1:
|
||||
image: .
|
||||
variables:
|
||||
DATABASE_URL: postgresql://${resources.db.username}:${resources.db.password}@${resources.db.host}:${resources.db.port}/${resources.db.name}
|
||||
NODE_ENV: production
|
||||
PORT: '3000'
|
||||
metadata:
|
||||
annotations:
|
||||
prometheus.io/path: /metrics
|
||||
prometheus.io/port: '3000'
|
||||
prometheus.io/scrape: 'true'
|
||||
labels:
|
||||
app: test-siva-node-1
|
||||
backstage.io/kubernetes-id: test-siva-node-1
|
||||
name: test-siva-node-1
|
||||
resources:
|
||||
db:
|
||||
type: postgres
|
||||
dns:
|
||||
type: dns
|
||||
env:
|
||||
type: environment
|
||||
service:
|
||||
ports:
|
||||
http:
|
||||
port: 3000
|
||||
targetPort: 3000
|
||||
Reference in New Issue
Block a user