Skip to content

Commit bea8316

Browse files
author
Mahi0911
committed
Readme changes for supporting sidb on minikube
1 parent 10a872e commit bea8316

File tree

4 files changed

+110
-4
lines changed

4 files changed

+110
-4
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ Upcoming releases will support new configurations, operations and capabilities.
3030

3131
This release can be deployed on the following platforms:
3232

33+
* [Minikube](https://minikube.sigs.k8s.io/docs/) with version v1.21.0 or later
3334
* [Oracle Container Engine for Kubernetes (OKE)](https://www.oracle.com/cloud-native/container-engine-kubernetes/) with Kubernetes 1.17 or later
3435
* In an on-premises [Oracle Linux Cloud Native Environment(OLCNE)](https://docs.oracle.com/en/operating-systems/olcne/) 1.3 or later
3536

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
#
2+
# Copyright (c) 2021, Oracle and/or its affiliates.
3+
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
4+
#
5+
6+
apiVersion: v1
7+
kind: Secret
8+
metadata:
9+
name: db-secret
10+
type: Opaque
11+
data:
12+
oracle_pwd: "T3JhY2xlIzc=" # 'Oracle#7' base64 encoded
13+
14+
---
15+
16+
apiVersion: v1
17+
kind: PersistentVolume
18+
metadata:
19+
name: pv1
20+
spec:
21+
accessModes:
22+
- ReadWriteMany
23+
capacity:
24+
storage: 5Gi
25+
hostPath:
26+
path: /data/pv1
27+
28+
---
29+
30+
apiVersion: database.oracle.com/v1alpha1
31+
kind: SingleInstanceDatabase
32+
metadata:
33+
name: sidb-sample
34+
namespace: default
35+
spec:
36+
37+
## Use only alphanumeric characters for sid
38+
sid: ORCL1
39+
40+
## A source database ref to clone from, leave empty to create a fresh database
41+
cloneFrom: ""
42+
43+
## NA if cloning from a SourceDB (cloneFrom is set)
44+
edition: enterprise
45+
46+
## Should refer to SourceDB secret if cloning from a SourceDB (cloneFrom is set)
47+
## Secret containing SIDB password mapped to secretKey
48+
## This secret will be deleted after creation of the database unless keepSecret is set to true
49+
adminPassword:
50+
secretName: db-secret
51+
secretKey: oracle_pwd
52+
keepSecret: false
53+
54+
## NA if cloning from a SourceDB (cloneFrom is set)
55+
charset: AL32UTF8
56+
57+
## NA if cloning from a SourceDB (cloneFrom is set)
58+
pdbName: orclpdb1
59+
60+
## Enable/Disable Flashback
61+
flashBack: false
62+
63+
## Enable/Disable ArchiveLog
64+
archiveLog: false
65+
66+
## Enable/Disable ForceLogging
67+
forceLog: false
68+
69+
## NA if cloning from a SourceDB (cloneFrom is set)
70+
## Specify both sgaSize and pgaSize (in MB) or dont specify both
71+
## Specify Non-Zero value to use
72+
initParams:
73+
cpuCount: 0
74+
processes: 0
75+
sgaTarget: 0
76+
pgaAggregateTarget: 0
77+
78+
## Database image details
79+
## Database can be patched by updating the RU version/image
80+
## Major version changes are not supported
81+
image:
82+
pullFrom:
83+
pullSecrets:
84+
85+
## size : Minimum size of pvc | class : PVC storage Class
86+
## AccessMode can only accept one of ReadWriteOnce, ReadWriteMany
87+
persistence:
88+
size: 4Gi
89+
storageClass: ""
90+
accessMode: "ReadWriteMany"
91+
92+
## Count of Database Pods. Applicable only for "ReadWriteMany" AccessMode
93+
replicas: 1

config/samples/sidb/singleinstancedatabase_prov.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ spec:
1414

1515
## Secret containing SIDB password mapped to secretKey
1616
adminPassword:
17-
secret:
18-
secretName:
19-
key:
17+
secretName:
18+
secretKey:
19+
keepSecret: false
2020

2121
## Database image details
2222
image:
23-
version:
2423
pullFrom:
2524
pullSecrets:
2625

docs/sidb/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ 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)
89
* [Clone Existing Database](#clone-existing-database)
910
* [Patch/Rollback Database](#patchrollback-database)
1011

@@ -114,6 +115,18 @@ Oracle strongly recommends that you follow the [Prerequisites](./SIDB_PREREQUISI
114115
singleinstancedatabase.database.oracle.com/sidb-sample created
115116
```
116117

118+
* ### Provision New Database On Minikube
119+
120+
Quickly Provision a new database instance on minikube using the [singleinstancedatabase_minikube.yaml](../../config/samples/sidb/singleinstancedatabase_minikube.yaml)
121+
122+
```sh
123+
$ kubectl create -f singleinstancedatabase_minikube.yaml
124+
125+
singleinstancedatabase.database.oracle.com/sidb-sample created
126+
```
127+
128+
129+
117130
* ### Creation Status
118131

119132
Creating a new database instance takes a while. When the 'status' status returns the response "Healthy", the Database is open for connections.

0 commit comments

Comments
 (0)