Skip to content

Commit 4d3b885

Browse files
author
Mahi0911
committed
Changed sanple yamls
1 parent d80f3ba commit 4d3b885

File tree

6 files changed

+23
-17
lines changed

6 files changed

+23
-17
lines changed

config/samples/sidb/singleinstancedatabase.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,11 @@ spec:
5959

6060
## size : Minimum size of pvc | class : PVC storage Class
6161
## AccessMode can only accept one of ReadWriteOnce, ReadWriteMany
62+
## Change the storageClass and accessMode accordingly if you dont want to use oci block volume
6263
persistence:
6364
size: 100Gi
64-
storageClass: ""
65-
accessMode: "ReadWriteMany"
65+
storageClass: "oci"
66+
accessMode: "ReadWriteOnce"
6667

6768
## Type of service . Applicable on cloud enviroments only
6869
## if loadBalService : false, service type = "NodePort". else "LoadBalancer"

config/samples/sidb/singleinstancedatabase_clone.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ spec:
3232

3333
## size : Minimum size of pvc | class : PVC storage Class
3434
## AccessMode can only accept one of ReadWriteOnce, ReadWriteMany
35+
## Change the storageClass and accessMode accordingly if you dont want to use oci block volume
3536
persistence:
3637
size: 100Gi
37-
storageClass: ""
38-
accessMode: "ReadWriteMany"
38+
storageClass: "oci"
39+
accessMode: "ReadWriteOnce"
3940

4041
## Count of Database Pods. Applicable only for "ReadWriteMany" AccessMode
4142
replicas: 1

config/samples/sidb/singleinstancedatabase_minikube.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,23 @@ kind: Secret
88
metadata:
99
name: db-secret
1010
type: Opaque
11-
data:
12-
oracle_pwd: "T3JhY2xlIzc=" # 'Oracle#7' base64 encoded
11+
stringData:
12+
oracle_pwd: "Change_On_Install_1"
1313

1414
---
1515

1616
apiVersion: v1
1717
kind: PersistentVolume
1818
metadata:
19-
name: pv1
19+
name: sidb-pv
2020
spec:
2121
accessModes:
2222
- ReadWriteMany
2323
capacity:
2424
storage: 5Gi
25+
storageClassName: sidb
2526
hostPath:
26-
path: /data/pv1
27+
path: /data/oradata
2728

2829
---
2930

@@ -86,7 +87,7 @@ spec:
8687
## AccessMode can only accept one of ReadWriteOnce, ReadWriteMany
8788
persistence:
8889
size: 4Gi
89-
storageClass: ""
90+
storageClass: "sidb"
9091
accessMode: "ReadWriteMany"
9192

9293
## Count of Database Pods. Applicable only for "ReadWriteMany" AccessMode

config/samples/sidb/singleinstancedatabase_patch.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,11 @@ spec:
2727

2828
## size : Minimum size of pvc | class : PVC storage Class
2929
## AccessMode can only accept one of ReadWriteOnce, ReadWriteMany
30+
## Change the storageClass and accessMode accordingly if you dont want to use oci block volume
3031
persistence:
3132
size: 100Gi
32-
storageClass: ""
33-
accessMode: "ReadWriteMany"
33+
storageClass: "oci"
34+
accessMode: "ReadWriteOnce"
3435

3536
## Count of Database Pods. Applicable only for "ReadWriteMany" AccessMode
3637
replicas: 1

config/samples/sidb/singleinstancedatabase_prov.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,13 @@ spec:
2323
pullFrom:
2424
pullSecrets:
2525

26-
## size : Minimum size of pvc | class : PVC storage Class .
27-
## AccessMode can only accept one of ReadWriteOnce , ReadWriteMany
26+
## size : Minimum size of pvc | class : PVC storage Class
27+
## AccessMode can only accept one of ReadWriteOnce, ReadWriteMany
28+
## Change the storageClass and accessMode accordingly if you dont want to use oci block volume
2829
persistence:
2930
size: 100Gi
30-
storageClass: ""
31-
accessMode: "ReadWriteMany"
31+
storageClass: "oci"
32+
accessMode: "ReadWriteOnce"
3233

3334
## Count of Database Pods. Applicable only for "ReadWriteMany" AccessMode
3435
replicas: 1

docs/sidb/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Oracle Database Operator for Kubernetes (the operator) includes the Single Insta
55
* [Prerequisites](#prerequisites)
66
* [Kind SingleInstanceDatabase Resource](#kind-singleinstancedatabase-resource)
77
* [Provision New Database](#provision-new-database)
8-
* [Provision New Database on Minikube](#provision-new-database-on-minikube)
98
* [Clone Existing Database](#clone-existing-database)
109
* [Patch/Rollback Database](#patchrollback-database)
1110

@@ -115,7 +114,9 @@ Oracle strongly recommends that you follow the [Prerequisites](./SIDB_PREREQUISI
115114
singleinstancedatabase.database.oracle.com/sidb-sample created
116115
```
117116

118-
* ### Provision New Database On Minikube
117+
**NOTE:** Make sure you have created the required `.spec.adminPassword` [secret](https://kubernetes.io/docs/tasks/configmap-secret/managing-secret-using-kubectl/)) and `.spec.persistence` [persistent volume](https://kubernetes.io/docs/concepts/storage/persistent-volumes/)
118+
119+
* ### Quickly Provision On Minikube
119120

120121
Quickly Provision a new database instance on minikube using the [singleinstancedatabase_minikube.yaml](../../config/samples/sidb/singleinstancedatabase_minikube.yaml)
121122

0 commit comments

Comments
 (0)