init commit

This commit is contained in:
2026-04-12 07:19:48 -03:00
commit 9dbf89da02
111 changed files with 14925 additions and 0 deletions

48
ctrl/k8s/base/api.yaml Normal file
View File

@@ -0,0 +1,48 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: api
namespace: unt
spec:
replicas: 1
selector:
matchLabels:
app: api
template:
metadata:
labels:
app: api
spec:
containers:
- name: api
image: unt-api
command: ["uv", "run", "uvicorn", "api.main:app", "--host", "0.0.0.0", "--port", "8000", "--reload"]
ports:
- containerPort: 8000
envFrom:
- configMapRef:
name: unt-config
readinessProbe:
httpGet:
path: /scenarios
port: 8000
initialDelaySeconds: 5
periodSeconds: 10
resources:
requests:
memory: 512Mi
cpu: 500m
limits:
memory: 2Gi
---
apiVersion: v1
kind: Service
metadata:
name: api
namespace: unt
spec:
selector:
app: api
ports:
- port: 8000
targetPort: 8000