-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-deployment.yaml
58 lines (58 loc) · 1.31 KB
/
app-deployment.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
47
48
49
50
51
52
53
54
55
56
57
58
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.19.0 (f63a961c)
creationTimestamp: null
labels:
io.kompose.service: app
name: app
spec:
replicas: 2
selector:
matchLabels:
io.kompose.service: app
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert
kompose.version: 1.19.0 (f63a961c)
creationTimestamp: null
labels:
io.kompose.service: app
spec:
containers:
- name: app
image: naing2victor/app:2.0
ports:
- containerPort: 80
protocol: TCP
volumeMounts:
- name: pvc
mountPath: /var/www
# - name: app-volume
# mountPath: /var/www
# - name: pvc
# mountPath: /usr/local/etc/php/conf.d/local.ini
envFrom:
- configMapRef:
name: app-env
- configMapRef:
name: database-env
- secretRef:
name: database-secret
workingDir: /var/www/
resources: {}
tty: true
restartPolicy: Always
volumes:
# - name: app-volume
# hostPath:
# path: /home/naing/project
- name: pvc
persistentVolumeClaim:
claimName: pvc
status: {}