File tree Expand file tree Collapse file tree 3 files changed +50
-0
lines changed
Expand file tree Collapse file tree 3 files changed +50
-0
lines changed Original file line number Diff line number Diff line change 1616 - name : backend
1717 image : mahmoodabuawwad/backend
1818 imagePullPolicy : Always
19+ env :
20+ - name : HOST
21+ value : " 192.168.205.155"
22+ - name : PORT # desired in flask-service.yaml
23+ value : " 30000"
24+
1925 ports :
2026 - containerPort : 5000
Original file line number Diff line number Diff line change 1+ apiVersion : apps/v1
2+ kind : Deployment
3+ metadata :
4+ name : mysql-pod
5+ spec :
6+ replicas : 1
7+ selector :
8+ matchLabels :
9+ app : mysql
10+ template :
11+ metadata :
12+ labels :
13+ app : mysql
14+ spec :
15+ containers :
16+ - name : database
17+ image : mysql
18+ env :
19+ - name : MYSQL_DATABASE
20+ value : " backend"
21+ - name : MYSQL_ROOT_PASSWORD
22+ value : " flask"
23+ - name : MYSQL_PASSWORD
24+ value : " flask"
25+ - name : MYSQL_USER
26+ value : " flask"
27+ imagePullPolicy : Always
28+ ports :
29+ - containerPort : 3306
30+
Original file line number Diff line number Diff line change 1+ apiVersion : v1
2+ kind : Service
3+ metadata :
4+ labels :
5+ service-label-key : mysql
6+ name : sql-service
7+ spec :
8+ type : NodePort
9+ ports :
10+ - port : 3306
11+ protocol : TCP
12+ nodePort : 30000
13+ selector :
14+ app : mysql
You can’t perform that action at this time.
0 commit comments