-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.yaml
44 lines (44 loc) · 946 Bytes
/
nginx.yaml
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: php-backend-deployment
namespace: default
spec:
selector:
matchLabels:
app: php-backend
replicas: 2
template:
metadata:
labels:
app: php-backend
spec:
containers:
- name: php-backend
image: nginx:mainline-alpine
ports:
- containerPort: 80
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 30
periodSeconds: 10
resources:
requests:
cpu: "500m"
memory: "512Mi"
limits:
cpu: "1000m"
memory: "1000Mi"
volumeMounts:
- name: nginxlog
mountPath: /var/log/nginx
dnsConfig:
options:
- name: ndots
value: "1"
volumes:
- name: nginxlog
persistentVolumeClaim:
claimName: nfs-pvc