This repository has been archived by the owner on Jan 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rds.yml
173 lines (173 loc) · 6.68 KB
/
rds.yml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: rdss.otc.mcsps.de
finalizers:
- rdss.otc.mcsps.de/rds
spec:
group: otc.mcsps.de
names:
kind: Rds
listKind: RdsList
plural: rdss
singular: rds
shortNames:
- rds
scope: Namespaced
versions:
- name: v1alpha1
served: true
storage: true
schema:
openAPIV3Schema:
x-kubernetes-preserve-unknown-fields: true
type: object
properties:
spec:
type: object
properties:
availabilityzone:
default: "eu-de-01"
description: Specifies the AZ ID. If the DB instance is not a single instance, you need to specify an AZ for each node of the instance and separate the AZs with commas (,).
type: string
backuprestoretime:
description: Specifies the backup restore time. Point In Time Recovery (PITR) will restore the instance to that point if set.
type: string
backupstarttime:
description: Specifies the backup time window. Automated backups will be triggered during the backup time window.
default: "01:00-02:00"
type: string
backupkeepdays:
description: Specifies the retention days for specific backup files.
default: 12
minimum: 0
maximum: 732
type: integer
databases:
description: List of database schema to create
items:
type: string
type: array
datastoretype:
description: Specifies the DB engine.
default: "MySQL"
pattern: "^(MySQL|PostgreSQL|SQLServer)$"
type: string
datastoreversion:
description: Specifies the database version.
default: "8.0"
pattern: "^(5.6|5.7|8.0|9.5|9.6|10|11|12|2014 SE|2016 SE|2016 EE|2017 SE|2017 EE)$"
type: string
endpoint:
description: Endpoint of notification service if autopilot is enabled
type: string
flavorref:
description: Specifies the specification code. The value cannot be empty.
default: "rds.mysql.c2.medium"
type: string
hamode:
description: Specifies the DB instance type. The value is Ha
pattern: "^Ha"
type: string
hareplicationmode:
description: Specifies the replication mode for the standby DB instance.
pattern: "^(sync|async|semisync)"
type: string
port:
description: Specifies the database port information.
default: "3306"
pattern: ^[0-9]{4,5}$
type: string
password:
description: Specifies the database password.
minLength: 8
maxLength: 32
pattern: ^[a-zA-Z0-9\~\!@\#\%\^\*\-\_\=\+\?]*$
type: string
region:
description: Specifies the region ID. Currently, read replicas can be created only in the same region as that of the primary DB instance.
default: "eu-de"
type: string
subnet:
description: Specifies the VPC
default: "default"
type: string
securitygroup:
description: Specifies the Security Group
default: "default"
type: string
users:
description: Database Users
items:
properties:
name:
description: Name of the database user
type: string
host:
description: Allowed host/network to connect for this user
type: string
password:
description: Password of this user
type: string
privileges:
description: List of privileges in the form GRANT ALL ON project1.* TO 'app1'@'%'
items:
type: string
type: array
type: object
type: array
volumetype:
description: Specifies the volume type. Its value can be any of the following and is case-sensitive- COMMON - indicates the SATA type. ULTRAHIGH - indicates the SSD type.
default: "COMMON"
enum:
- COMMON
- ULTRAHIGH
type: string
volumesize:
default: 40
description: Specifies the volume size. Its value must be a multiple of 10 and the value range is from 40 GB to 4000 GB.
minimum: 40
maximum: 4000
type: integer
vpc:
description: Specifies the VPC
default: "default"
type: string
required:
- datastoretype
- datastoreversion
- volumetype
- volumesize
- port
- backupstarttime
- backupkeepdays
- flavorref
- region
- availabilityzone
- vpc
- subnet
- securitygroup
status:
properties:
autopilot:
default: false
description: Trigger to operate RDS in autopilot
type: boolean
id:
description: RDS Instance ID
type: string
ip:
description: RDS ip-address (internal)
type: string
logs:
default: false
description: Trigger to fetch RDS logs and provide job output
type: boolean
reboot:
default: false
description: Trigger to reboot RDS instance
type: boolean
status:
description: Status of RDS instance
type: string
type: object