-
Notifications
You must be signed in to change notification settings - Fork 0
/
php-fpm-deploy.yaml
46 lines (46 loc) · 1006 Bytes
/
php-fpm-deploy.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
45
46
apiVersion: apps/v1
kind: Deployment
metadata:
name: php
labels:
tier: backend
spec:
replicas: 1
selector:
matchLabels:
app: php
tier: backend
template:
metadata:
labels:
app: php
tier: backend
spec:
volumes:
- name: nginx-pv-volume
persistentVolumeClaim:
claimName: nginx-pvc-volume
containers:
- name: php
image: php:7.2-fpm
resources:
requests:
memory: 50Mi
cpu: 50m
limits:
memory: 200Mi
cpu: 200m
volumeMounts:
- name: nginx-pv-volume
mountPath: /usr/share/nginx/html
initContainers:
- name: install
image: busybox
volumeMounts:
- name: nginx-pv-volume
mountPath: /mnt/nginx
command:
- wget
- "-O"
- "/mnt/nginx/index.php"
- https://raw.githubusercontent.com/do-community/php-kubernetes/master/index.php