-
Notifications
You must be signed in to change notification settings - Fork 1
/
deployment-nw.yaml
69 lines (63 loc) · 1.48 KB
/
deployment-nw.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
59
60
61
62
63
64
65
66
67
68
69
apiVersion: apps/v1
kind: Deployment
metadata:
name: laravel
labels:
app: laravel
spec:
replicas: 1
selector:
matchLabels:
app: laravel
template:
metadata:
labels:
app: laravel
spec:
containers:
- name: frontend
image: 888276918709.dkr.ecr.ap-south-1.amazonaws.com/frontend:latest
ports:
- containerPort: 80
volumeMounts:
- mountPath: /public_html
name: glue-app
- name: backend
image: 888276918709.dkr.ecr.ap-south-1.amazonaws.com/backend:latest
ports:
- containerPort: 9000
volumeMounts:
- mountPath: /public_html
name: glue-app
- name: mysql
image: mysql:5
env:
- name: MYSQL_DATABASE
value: laraveldb
- name: MYSQL_USER
value: laraveluser
- name: MYSQL_PASSWORD
value: laravrlpass
- name: MYSQL_ROOT_PASSWORD
value: StongPass
ports:
- containerPort: 3306
volumeMounts:
- mountPath: /var/lib/mysql
name: glue-db-vol
volumes:
- name: glue-app
- name: glue-db-vol
---
apiVersion: v1
kind: Service
metadata:
name: laravel-service
spec:
selector:
app: laravel
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer