-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathsingleinstancedatabase_tcps.yaml
63 lines (50 loc) · 2.12 KB
/
singleinstancedatabase_tcps.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#
# Copyright (c) 2023, Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
#
apiVersion: database.oracle.com/v1alpha1
kind: SingleInstanceDatabase
metadata:
# Creates base sidb-sample. Use singleinstancedatabase_clone.yaml for cloning
# and singleinstancedatabase_patch.yaml for patching
name: sidb-sample
namespace: default
spec:
## Use only alphanumeric characters for sid
sid: ORCL1
## DB edition.
edition: enterprise
## Secret containing SIDB password mapped to secretKey
adminPassword:
secretName: db-admin-secret
## DB character set
charset: AL32UTF8
## PDB name
pdbName: orclpdb1
## Enable/Disable ArchiveLog. Should be true to allow DB cloning
archiveLog: true
## Enable TCPS
enableTCPS: true
## User specified TLS-Cert Secret
## The following specified TLS certs will be used instead of self-signed
tcpsTlsSecret: my-tls-secret
## TCPS Certificate Renewal Interval: (Valid for Self-Signed Certificates)
## The time after which TCPS certificate will be renewed if TCPS connections are enabled.
## tcpsCertRenewInterval can be in hours(h), minutes(m) and seconds(s); e.g. 4380h, 8760h etc.
## Maximum value is 8760h (1 year), Minimum value is 24h; Default value is 8760h (1 year)
## If this field is commented out/removed from the yaml, it will disable the auto-renewal feature for TCPS certificate
tcpsCertRenewInterval: 8760h
## Database image details
image:
pullFrom: container-registry.oracle.com/database/enterprise:latest
pullSecrets: oracle-container-registry-secret
## size is the required minimum size of the persistent volume
## storageClass is specified for automatic volume provisioning
## accessMode can only accept one of ReadWriteOnce, ReadWriteMany
persistence:
size: 100Gi
## oci-bv applies to OCI block volumes. Use "standard" storageClass for dynamic provisioning in Minikube. Update as appropriate for other cloud service providers
storageClass: "oci-bv"
accessMode: "ReadWriteOnce"
## Count of Database Pods.
replicas: 1