add cicd on gitea
This commit is contained in:
28
k8s/deployment.yml
Normal file
28
k8s/deployment.yml
Normal 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
12
k8s/service.yml
Normal 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
|
||||
Reference in New Issue
Block a user