File tree Expand file tree Collapse file tree 4 files changed +17
-3
lines changed
Expand file tree Collapse file tree 4 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ SpringBoot Demo with MySQL running on Kubernetes
44
55## Build Demo App image
66
7+ Skip this step if you just want to test the app on Kubernetes
8+
79``` shell
810docker build --pull --no-cache --squash --rm --progress plain -f Dockerfile -t sbdemo .
911```
@@ -32,6 +34,16 @@ kubectl create secret generic mysql-secrets \
3234 --from-literal=database=DB
3335```
3436
37+ ### Clone the repo if using OCI CloudShell or local
38+
39+ ``` shell
40+ git clone https://github.com/junior/springboot-demo-k8s-mysql.git
41+ ```
42+
43+ ``` shell
44+ cd springboot-demo-k8s-mysql/kubernetes
45+ ```
46+
3547### Deploy MySQL 5.7
3648
3749#### Create PVC for MySQl on Oracle Cloud Infrastructure using CSI for Block Volume
@@ -44,6 +56,8 @@ kubectl apply -f mysql-pvc-oci-bv.yaml
4456
4557#### Create Service for MySQL
4658
59+ Note: this step will create a new LoadBalancer on the infrastructure
60+
4761``` shell
4862kubectl apply -f mysql-svc.yaml
4963```
Original file line number Diff line number Diff line change 5454 volumes :
5555 - name : mysql-persistent-storage
5656 persistentVolumeClaim :
57- claimName : mysql-pvc-manual
57+ claimName : mysql-pvc
Original file line number Diff line number Diff line change 1717apiVersion : v1
1818kind : PersistentVolumeClaim
1919metadata :
20- name : mysql-pvc-manual
20+ name : mysql-pvc
2121spec :
2222 storageClassName : manual
2323 accessModes :
Original file line number Diff line number Diff line change 22apiVersion : v1
33kind : PersistentVolumeClaim
44metadata :
5- name : mysql-pvc-oci-bv
5+ name : mysql-pvc
66spec :
77 storageClassName : oci-bv
88 accessModes :
You can’t perform that action at this time.
0 commit comments