-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathdeployment.yml
More file actions
44 lines (44 loc) · 724 Bytes
/
deployment.yml
File metadata and controls
44 lines (44 loc) · 724 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
39
40
41
42
43
44
apiVersion: apps/v1
kind: Deployment
metadata:
name: demo-deployment
labels:
app: demo-app
spec:
replicas: 1
selector:
matchLabels:
app: demo-app
template:
metadata:
labels:
app: demo-app
spec:
containers:
- name: demo-app
image: interviewdot/cicd-k8s-demo:latest
ports:
- containerPort: 8081
---
apiVersion: v1
kind: Service
metadata:
name: demo-service
spec:
selector:
app: demo-app
ports:
- port: 8081
targetPort: 8081
nodePort: 30008
type: LoadBalancer
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: demo-pdb
spec:
minAvailable: 2
selector:
matchLabels:
app: demo-app