add cicd on gitea

This commit is contained in:
Ahmad Ardiansyah
2025-11-13 17:11:33 +07:00
parent af4bbe9b15
commit 7d63564023
8 changed files with 3003 additions and 1 deletions

28
k8s/deployment.yml Normal file
View File

@@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: APP_NAME
namespace: ENVIRONMENT
spec:
replicas: 1
selector:
matchLabels:
app: APP_NAME
template:
metadata:
labels:
app: APP_NAME
spec:
containers:
- name: APP_NAME
image: IMAGE_NAME
ports:
- containerPort: 3000
protocol: TCP
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 250m
memory: 128Mi

12
k8s/service.yml Normal file
View File

@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: APP_NAME
namespace: ENVIRONMENT
spec:
selector:
app: APP_NAME
ports:
- protocol: TCP
port: 80
targetPort: 3000