-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp-fpm-deplyment.yml
42 lines (42 loc) · 981 Bytes
/
php-fpm-deplyment.yml
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
apiVersion: v1
kind: Service
metadata:
name: php-fpm-service
spec:
selector:
app: api
name: php-fpm
ports:
- name: php
port: 9000
targetPort: 9000
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: php-fpm-deployment
spec:
selector:
matchLabels:
app: api
name: php-fpm
replicas: 3
template:
metadata:
labels:
app: api
name: php-fpm
spec:
containers:
- name: php-fpm
image: habor.zcx/service/php-fpm:0.0.1
imagePullPolicy: Always
volumeMounts:
- name: web-root
mountPath: /var/www
imagePullSecrets:
- name: harborkey1
volumes:
- name: web-root
persistentVolumeClaim:
claimName: code-nfs-pvc