-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdeployment.yaml
More file actions
85 lines (82 loc) · 1.89 KB
/
deployment.yaml
File metadata and controls
85 lines (82 loc) · 1.89 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
apiVersion: apps/v1
kind: Deployment
metadata:
name: product-service
namespace: php-project
spec:
replicas: 1
selector:
matchLabels:
app: backend
template:
metadata:
labels:
app: backend
spec:
containers:
- name: product-service
image: ganeshhp/php_project:latest
ports:
- name: port
containerPort: 80
livenessProbe:
httpGet:
path: "/"
port: 80
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 5
readinessProbe:
httpGet:
path: "/"
port: 80
initialDelaySeconds: 20
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: website
namespace: php-project
spec:
replicas: 1
selector:
matchLabels:
app: website-server
template:
metadata:
labels:
app: website-server
spec:
containers:
- name: website
image: php:apache
ports:
- name: httpport
containerPort: 80
#livenessProbe:
#httpGet:
# path: "/"
# port: 80
#initialDelaySeconds: 90
#periodSeconds: 10
#timeoutSeconds: 5
#failureThreshold: 5
# readinessProbe:
#httpGet:
# path: "/"
# port: 80
#initialDelaySeconds: 60
#periodSeconds: 10
#timeoutSeconds: 5
#failureThreshold: 3
volumeMounts:
- name: php-data
mountPath: /var/www/html
volumes:
- name: php-data
persistentVolumeClaim:
claimName: php-pv-claim