Skip to content

Commit 81a90d5

Browse files
committed
updates
1 parent be491ca commit 81a90d5

File tree

4 files changed

+17
-3
lines changed

4 files changed

+17
-3
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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
810
docker 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
4862
kubectl apply -f mysql-svc.yaml
4963
```

kubernetes/mysql-dep.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ spec:
5454
volumes:
5555
- name: mysql-persistent-storage
5656
persistentVolumeClaim:
57-
claimName: mysql-pvc-manual
57+
claimName: mysql-pvc

kubernetes/mysql-pvc-manual.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
apiVersion: v1
1818
kind: PersistentVolumeClaim
1919
metadata:
20-
name: mysql-pvc-manual
20+
name: mysql-pvc
2121
spec:
2222
storageClassName: manual
2323
accessModes:

kubernetes/mysql-pvc-oci-bv.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v1
33
kind: PersistentVolumeClaim
44
metadata:
5-
name: mysql-pvc-oci-bv
5+
name: mysql-pvc
66
spec:
77
storageClassName: oci-bv
88
accessModes:

0 commit comments

Comments
 (0)