-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp.yml
43 lines (42 loc) · 772 Bytes
/
php.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
43
apiVersion: apps/v1
kind: Deployment
metadata:
name: phpfpm-deployment
namespace: ns-test
labels:
app: phpfpm
spec:
selector:
matchLabels:
app: phpfpm
replicas: 2
template:
metadata:
labels:
app: phpfpm
spec:
containers:
- name: phpfpm
image: php-test:1.0
env:
- name: DB_HOST
value: mysql-service
- name: DB_PW
valueFrom:
secretKeyRef:
name: mysql-secrets
key: rootpw
ports:
- containerPort: 9000
---
apiVersion: v1
kind: Service
metadata:
name: phpfpm-service
namespace: ns-test
spec:
type: ClusterIP
ports:
- port: 9000
selector:
app: phpfpm