forked from linuxacademy/cicd-pipeline-train-schedule-gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
38 lines (36 loc) · 816 Bytes
/
deployment.yaml
File metadata and controls
38 lines (36 loc) · 816 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apiVersion: apps/v1
kind: Deployment
metadata:
name: cicd-pipeline-demo
spec:
replicas: 1
selector:
matchLabels:
app: cicd-pipeline-demo
template:
metadata:
labels:
app: cicd-pipeline-demo
spec:
containers:
- name: cicd-pipeline-demo
image: mdsatan/cicd-pipeline-demo:5
imagePullPolicy: Always
ports:
- containerPort: 3000
name: http
---
kind: Service
apiVersion: v1
metadata:
name: cicd-pipeline-demo-service
spec:
selector:
app: cicd-pipeline-demo
ports:
- protocol: TCP
targetPort: 3000
port: 3000
nodePort: 30000
name: http
type: LoadBalancer