Files
deployment-manager/manifests/python.yaml
2026-02-01 20:22:29 +05:30

51 lines
939 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: {{.AppName}}
labels:
app: {{.AppName}}
repo-id: "{{.RepoID}}"
spec:
replicas: 1
selector:
matchLabels:
app: {{.AppName}}
template:
metadata:
labels:
app: {{.AppName}}
repo-id: "{{.RepoID}}"
spec:
containers:
- name: {{.AppName}}
image: {{.ImageName}}
ports:
- containerPort: 8000
env:
- name: PORT
value: "8000"
- name: PYTHONUNBUFFERED
value: "1"
resources:
requests:
memory: "64Mi"
cpu: "50m"
limits:
memory: "256Mi"
cpu: "200m"
---
apiVersion: v1
kind: Service
metadata:
name: {{.AppName}}
labels:
app: {{.AppName}}
repo-id: "{{.RepoID}}"
spec:
selector:
app: {{.AppName}}
ports:
- port: 80
targetPort: 8000
protocol: TCP
type: ClusterIP