initial app

This commit is contained in:
2026-02-06 19:46:26 +04:00
commit a2c4560e36
4 changed files with 64 additions and 0 deletions

32
k8s/app.yaml Normal file
View File

@@ -0,0 +1,32 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: fastapi-app-deployment
spec:
replicas: 3
selector:
matchLabels:
app: fastapi-app
template:
metadata:
labels:
app: fastapi-app
spec:
containers:
- name: fastapi-app-container
image: igit.danilkolesnikov.ru/danil/playground_app
ports:
- containerPort: 8000
---
apiVersion: v1
kind: Service
metadata:
name: fastapi-app-service
spec:
selector:
app: fastapi-app
ports:
- protocol: TCP
port: 8000
targetPort: 8000