ancient-diamond-80011
03/24/2023, 12:40 PMyaml
kind: Build
type: container
name: api
---
kind: Deploy
description: The backend for the voting UI
name: api
type: container
build: api
dependencies:
- deploy.redis
spec:
args: [python, app.py]
ports:
- name: http
protocol: TCP
containerPort: 80
healthCheck:
httpGet:
path: /api
port: http
ingresses:
- path: /
hostname: "api.${var.baseHostname}"
port: http
---
kind: Test
name: api-integ
type: container
build: api
dependencies:
- deploy.api
timeout: 200
spec:
args: [python, /app/test.py]