This commit is contained in:
Kar
2026-02-01 20:22:29 +05:30
commit 52265ed4cc
30 changed files with 2058 additions and 0 deletions

51
manifests/nodejs.yaml Normal file
View File

@@ -0,0 +1,51 @@
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: 3000
env:
- name: PORT
value: "3000"
- name: NODE_ENV
value: "production"
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: 3000
protocol: TCP
type: ClusterIP

51
manifests/python.yaml Normal file
View File

@@ -0,0 +1,51 @@
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