40 lines
773 B
YAML
40 lines
773 B
YAML
# api-deployment.yaml
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: kaneo-api
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: kaneo-api
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: kaneo-api
|
|
spec:
|
|
containers:
|
|
- name: api
|
|
image: ghcr.io/usekaneo/api:latest
|
|
ports:
|
|
- containerPort: 1337
|
|
envFrom:
|
|
- configMapRef:
|
|
name: kaneo-env
|
|
# If your API uses POSTGRES_HOST, point it to the postgres Service:
|
|
# env:
|
|
# - name: POSTGRES_HOST
|
|
# value: "postgres"
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: kaneo-api
|
|
spec:
|
|
type: ClusterIP
|
|
selector:
|
|
app: kaneo-api
|
|
ports:
|
|
- port: 1337
|
|
targetPort: 1337
|