You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: site/database.md
+40-3Lines changed: 40 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,25 @@ persistent store/leases etc in there
4
4
5
5
# Running the Oracle Database in Kubernetes
6
6
7
-
**PLEASE NOTE**: This page is a work in progress. We will update this with either better details about how to put the data files onto a persistent volume, or a pointer to the official Oracle Database Kubernetes pages, or both.
7
+
If you wish to run the Oracle Database inside your Kubernetes cluster, in order to place
8
+
your state store, leasing tables, etc., in that database, then you can use this
9
+
sample to install the database.
8
10
11
+
First create a namespace for the database:
12
+
13
+
```
14
+
kubectl create namespace database-namespace
9
15
```
10
16
17
+
Next, create a file called `database.yml` with the following content. Make sure you update the
18
+
password field with you chosen administrator password for the database.
19
+
20
+
```
11
21
apiVersion: extensions/v1beta1
12
22
kind: Deployment
13
23
metadata:
14
24
name: database
15
-
namespace: domain2
25
+
namespace: database-namespace
16
26
labels:
17
27
app: database
18
28
version: 12.1.0.2
@@ -68,7 +78,7 @@ apiVersion: v1
68
78
kind: Service
69
79
metadata:
70
80
name: database
71
-
namespace: domain2
81
+
namespace: database-namespace
72
82
spec:
73
83
selector:
74
84
app: database
@@ -78,3 +88,30 @@ spec:
78
88
port: 1521
79
89
targetPort: 1521
80
90
```
91
+
92
+
If you have not previously done so, you will need to go to the [Oracle Container Registry](https://container-registry.oracle.com)
93
+
and accept the license for the [Oracle database image](https://container-registry.oracle.com/pls/apex/f?p=113:4:11538835301670).
94
+
95
+
Create a Docker registry secret so that Kubernetes can pull the database image:
0 commit comments