forked from RedisLabs/redis-enterprise-k8s-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenshift.bundle.yaml
14297 lines (14294 loc) · 636 KB
/
openshift.bundle.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
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
---
kind: SecurityContextConstraints
apiVersion: security.openshift.io/v1
metadata:
name: redis-enterprise-scc
allowPrivilegedContainer: false
allowedCapabilities:
- SYS_RESOURCE
runAsUser:
type: MustRunAs
uid: 1001
FSGroup:
type: MustRunAs
ranges: 1001,1001
seLinuxContext:
type: RunAsAny
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: redis-enterprise-operator
rules:
- apiGroups: ["rbac.authorization.k8s.io", ""]
resources: ["roles", "serviceaccounts", "rolebindings"]
verbs: ["bind", "escalate", "impersonate", "userextras", "create", "get",
"list", "watch", "update", "patch", "delete", "deletecollection"]
- apiGroups:
- app.redislabs.com
resources: ["redisenterpriseclusters", "redisenterpriseclusters/status", "redisenterpriseclusters/finalizers",
"redisenterprisedatabases", "redisenterprisedatabases/status", "redisenterprisedatabases/finalizers"]
verbs: ["delete", "deletecollection", "get", "list", "patch", "create", "update", "watch"]
- apiGroups: [""]
resources: ["secrets"]
verbs: ["update", "get", "read", "list", "listallnamespaces", "watch", "watchlist",
"watchlistallnamespaces", "create", "patch", "replace", "delete", "deletecollection"]
- apiGroups: [""]
resources: ["endpoints"]
verbs: ["get", "list", "watch"]
- apiGroups: [""]
resources: ["events"]
verbs: ["create", "patch"]
- apiGroups: ["apps"]
resources: ["deployments", "statefulsets", "replicasets"]
verbs: ["create", "delete", "deletecollection", "get", "list", "patch", "update", "watch"]
- apiGroups: ["policy"]
resources: ["poddisruptionbudgets"]
verbs: ["create", "delete", "get", "list", "watch"]
- apiGroups: [""]
resources: ["configmaps"]
verbs: ["create", "delete", "get" , "update", "list", "watch"]
- apiGroups: [""]
resources: ["persistentvolumeclaims"]
verbs: ["create", "delete", "get" , "update"]
# needed rbac rules for services controller
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "watch", "list", "update", "patch", "delete"]
- apiGroups: [""]
resources: ["services"]
verbs: ["get", "watch", "list", "update", "patch", "create", "delete"]
- apiGroups: ["policy"]
resources: ["podsecuritypolicies"]
resourceNames:
- redis-enterprise-psp
verbs:
- use
- apiGroups: ["extensions"]
resources: ["ingresses"]
verbs: ["create", "patch", "replace", "delete", "deletecollection", "read", "list", "listallnamespaces",
"watch", "watchlist", "watchlistallnamespaces", "patchstatus", "readstatus", "replacestatus", "update"]
- apiGroups: ["networking.k8s.io"]
resources: ["ingresses"]
verbs: ["create", "patch", "replace", "delete", "deletecollection", "read", "list", "listallnamespaces",
"watch", "watchlist", "watchlistallnamespaces", "patchstatus", "readstatus", "replacestatus", "update"]
- apiGroups:
- route.openshift.io
resources: ["routes", "routes/custom-host"]
verbs: ["create", "delete", "deletecollection", "get", "list", "patch", "update", "watch"]
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: redis-enterprise-operator
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: redis-enterprise-operator
subjects:
- kind: ServiceAccount
name: redis-enterprise-operator
roleRef:
kind: Role
name: redis-enterprise-operator
apiGroup: rbac.authorization.k8s.io
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: redisenterprisedatabases.app.redislabs.com
spec:
group: app.redislabs.com
names:
kind: RedisEnterpriseDatabase
listKind: RedisEnterpriseDatabaseList
plural: redisenterprisedatabases
singular: redisenterprisedatabase
shortNames:
- redb
scope: Namespaced
preserveUnknownFields: false
versions:
- name: v1alpha1
served: true
storage: true
additionalPrinterColumns:
- jsonPath: .status.version
name: Version
type: string
- jsonPath: .status.internalEndpoints[*].port
name: Port
type: string
- jsonPath: .status.redisEnterpriseCluster
name: Cluster
type: string
- jsonPath: .status.shardStatuses.active
name: Shards
type: string
- jsonPath: .status.status
name: Status
type: string
- jsonPath: .status.specStatus
name: Spec Status
type: string
- jsonPath: .metadata.creationTimestamp
name: Age
type: date
subresources:
status: {}
schema:
openAPIV3Schema:
description: RedisEnterpriseDatabase is the Schema for the redisenterprisedatabases
API
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
spec:
description: RedisEnterpriseDatabaseSpec defines the desired state of RedisEnterpriseDatabase
properties:
alertSettings:
description: Settings for database alerts
properties:
bdb_backup_delayed:
description: "Periodic backup has been delayed for longer than specified threshold value [minutes].
-Note threshold is commented (allow string/int/float and support backwards compatibility) but is required"
properties:
enabled:
description: Alert enabled or disabled
type: boolean
# threshold:
# description: Threshold for alert going on/off
# type: string
x-kubernetes-preserve-unknown-fields: true
type: object
bdb_crdt_src_high_syncer_lag:
description: "Active-active source - sync lag is higher than specified threshold value [seconds]
-Note threshold is commented (allow string/int/float and support backwards compatibility) but is required"
properties:
enabled:
description: Alert enabled or disabled
type: boolean
# threshold:
# description: Threshold for alert going on/off
# type: string
x-kubernetes-preserve-unknown-fields: true
type: object
bdb_crdt_src_syncer_connection_error:
description: "Active-active source - sync has connection error while trying to connect replica source
-Note threshold is commented (allow string/int/float and support backwards compatibility) but is required"
properties:
enabled:
description: Alert enabled or disabled
type: boolean
# threshold:
# description: Threshold for alert going on/off
# type: string
x-kubernetes-preserve-unknown-fields: true
type: object
bdb_crdt_src_syncer_general_error:
description: "Active-active source - sync encountered in general error
-Note threshold is commented (allow string/int/float and support backwards compatibility) but is required"
properties:
enabled:
description: Alert enabled or disabled
type: boolean
# threshold:
# description: Threshold for alert going on/off
# type: string
x-kubernetes-preserve-unknown-fields: true
type: object
bdb_high_latency:
description: "Latency is higher than specified threshold value [micro-sec]
-Note threshold is commented (allow string/int/float and support backwards compatibility) but is required"
properties:
enabled:
description: Alert enabled or disabled
type: boolean
# threshold:
# description: Threshold for alert going on/off
# type: string
x-kubernetes-preserve-unknown-fields: true
type: object
bdb_high_throughput:
description: "Throughput is higher than specified threshold value [requests / sec.]
-Note threshold is commented (allow string/int/float and support backwards compatibility) but is required"
properties:
enabled:
description: Alert enabled or disabled
type: boolean
# threshold:
# description: Threshold for alert going on/off
# type: string
x-kubernetes-preserve-unknown-fields: true
type: object
bdb_long_running_action:
description: "An alert for state-machines that are running for too long
-Note threshold is commented (allow string/int/float and support backwards compatibility) but is required"
properties:
enabled:
description: Alert enabled or disabled
type: boolean
# threshold:
# description: Threshold for alert going on/off
# type: string
x-kubernetes-preserve-unknown-fields: true
type: object
bdb_low_throughput:
description: "Throughput is lower than specified threshold value [requests / sec.]
-Note threshold is commented (allow string/int/float and support backwards compatibility) but is required"
properties:
enabled:
description: Alert enabled or disabled
type: boolean
# threshold:
# description: Threshold for alert going on/off
# type: string
x-kubernetes-preserve-unknown-fields: true
type: object
bdb_ram_dataset_overhead:
description: "Dataset RAM overhead of a shard has reached the threshold value [% of its RAM limit]
-Note threshold is commented (allow string/int/float and support backwards compatibility) but is required"
properties:
enabled:
description: Alert enabled or disabled
type: boolean
# threshold:
# description: Threshold for alert going on/off
# type: string
x-kubernetes-preserve-unknown-fields: true
type: object
bdb_ram_values:
description: "Percent of values kept in a shard's RAM is lower than [% of its key count]
-Note threshold is commented (allow string/int/float and support backwards compatibility) but is required"
properties:
enabled:
description: Alert enabled or disabled
type: boolean
# threshold:
# description: Threshold for alert going on/off
# type: string
x-kubernetes-preserve-unknown-fields: true
type: object
bdb_replica_src_high_syncer_lag:
description: "Replica-of source - sync lag is higher than specified threshold value [seconds]
-Note threshold is commented (allow string/int/float and support backwards compatibility) but is required"
properties:
enabled:
description: Alert enabled or disabled
type: boolean
# threshold:
# description: Threshold for alert going on/off
# type: string
x-kubernetes-preserve-unknown-fields: true
type: object
bdb_replica_src_syncer_connection_error:
description: "Replica-of source - sync has connection error while trying to connect replica source
-Note threshold is commented (allow string/int/float and support backwards compatibility) but is required"
properties:
enabled:
description: Alert enabled or disabled
type: boolean
# threshold:
# description: Threshold for alert going on/off
# type: string
x-kubernetes-preserve-unknown-fields: true
type: object
bdb_shard_num_ram_values:
description: "Number of values kept in a shard's RAM is lower than [values]
-Note threshold is commented (allow string/int/float and support backwards compatibility) but is required"
properties:
enabled:
description: Alert enabled or disabled
type: boolean
# threshold:
# description: Threshold for alert going on/off
# type: string
x-kubernetes-preserve-unknown-fields: true
type: object
bdb_size:
description: "Dataset size has reached the threshold value [% of the memory limit] expected fields:
-Note threshold is commented (allow string/int/float and support backwards compatibility) but is required"
properties:
enabled:
description: Alert enabled or disabled
type: boolean
# threshold:
# description: Threshold for alert going on/off
# type: string
x-kubernetes-preserve-unknown-fields: true
type: object
type: object
backup:
description: Target for automatic database backups.
properties:
abs:
properties:
absSecretName:
description: The name of the K8s secret that holds ABS credentials.
The secret must contain the keys "AccountName" and "AccountKey",
and these must hold the corresponding credentials
type: string
container:
description: Azure Blob Storage container name.
type: string
subdir:
description: Optional. Azure Blob Storage subdir under container.
type: string
required:
- absSecretName
- container
type: object
ftp:
properties:
url:
description: "a URI of the ftps://[USER[:PASSWORD]@]HOST[:PORT]/PATH[/]"
type: string
pattern: ftps?://(([^@]+)@)?([^@/:]+)(:(\d+))?([/\.]/?[^@/\.]+)*?/?$
required:
- url
type: object
gcs:
description: GoogleStorage
properties:
bucketName:
description: Google Storage bucket name.
type: string
gcsSecretName:
description: The name of the K8s secret that holds the Google
Cloud Storage credentials. The secret must contain the keys
"CLIENT_ID", "PRIVATE_KEY", "PRIVATE_KEY_ID", "CLIENT_EMAIL"
and these must hold the corresponding credentials. The keys
should correspond to the values in the key JSON.
type: string
subdir:
description: Optional. Google Storage subdir under bucket.
type: string
required:
- bucketName
- gcsSecretName
type: object
interval:
description: Backup Interval in seconds
type: integer
mount:
description: MountPointStorage
properties:
path:
description: Path to the local mount point. You must create
the mount point on all nodes, and the redislabs:redislabs
user must have read and write permissions on the local mount
point.
type: string
required:
- path
type: object
s3:
properties:
awsSecretName:
description: The name of the K8s secret that holds the AWS credentials.
The secret must contain the keys "AWS_ACCESS_KEY_ID" and "AWS_SECRET_ACCESS_KEY",
and these must hold the corresponding credentials.
type: string
bucketName:
description: Amazon S3 bucket name.
type: string
subdir:
description: Optional. Amazon S3 subdir under bucket.
type: string
required:
- awsSecretName
- bucketName
type: object
sftp:
properties:
sftp_url:
description: SFTP url
type: string
pattern: ^sftp://(([^@]+)@)?([^@/:]+)(:(\d+))?(/([^@/\.]+[/\.]?)*)?$
sftpSecretName:
description: The name of the K8s secret that holds SFTP credentials.
The secret must contain the "Key" key, which is the SSH private
key for connecting to the sftp server.
type: string
required:
- sftpSecretName
- sftp_url
type: object
swift:
properties:
auth_url:
description: Swift service authentication URL.
type: string
pattern: ^https?://(([^@]+)@)?([^@/:]+)(:(\d+))?([/\.]([^@/\.]+))*?/?$
container:
description: Swift object store container for storing the backup
files.
type: string
prefix:
description: Optional. Prefix (path) of backup files in the
swift container.
type: string
swiftSecretName:
description: 'The name of the K8s secret that holds Swift credentials.
The secret must contain the keys "Key" and "User", and these
must hold the corresponding credentials: service access key
and service user name (pattern for the latter does not allow
special characters &,<,>,")'
type: string
required:
- auth_url
- container
- swiftSecretName
type: object
type: object
clientAuthenticationCertificates:
description: The Secrets containing TLS Client Certificate to use for
Authentication
items:
type: string
type: array
dataInternodeEncryption:
description: Internode encryption (INE) setting. An optional boolean setting, overriding
a similar cluster-wide policy.
If set to False, INE is guaranteed to be turned off for this DB (regardless of cluster-wide policy).
If set to True, INE will be turned on, unless the capability is not supported by the DB (
in such a case we will get an error and database creation will fail).
If left unspecified, will be disabled if internode encryption is not supported by the DB
(regardless of cluster default).
Deleting this property after explicitly setting its value shall have no effect.
type: boolean
databasePort:
description: Database port number. TCP port on which the database is
available. Will be generated automatically if omitted. can not be
changed after creation
type: integer
databaseSecretName:
description: The name of the K8s secret that holds the password to the
database.
type: string
defaultUser:
description: Is connecting with a default user allowed?
type: boolean
evictionPolicy:
description: Database eviction policy. see more https://docs.redislabs.com/latest/rs/administering/database-operations/eviction-policy/
type: string
memorySize:
description: memory size of database. use formats like 100MB, 0.1GB.
minimum value in 100MB.
type: string
modulesList:
description: List of modules associated with database
items:
description: 'Redis Enterprise Module: https://redislabs.com/redis-enterprise/modules/'
properties:
config:
description: Module command line arguments e.g. VKEY_MAX_ENTITY_COUNT
30
type: string
name:
description: The module's name e.g "ft" for redissearch
type: string
version:
description: Module's semantic version e.g "1.6.12"
type: string
required:
- name
- version
type: object
type: array
ossCluster:
description: OSS Cluster mode option. Note that not all client libraries
support OSS cluster mode.
type: boolean
persistence:
description: Database on-disk persistence policy
enum:
- disabled
- aofEverySecond
- aofAlways
- snapshotEvery1Hour
- snapshotEvery6Hour
- snapshotEvery12Hour
type: string
proxyPolicy:
description: 'The policy used for proxy binding to the endpoint. Supported
proxy policies are: single/all-master-shards/all-nodes When left blank,
the default value will be chosen according to the value of ossCluster
- single if disabled, all-master-shards when enabled'
type: string
rackAware:
description: 'Whether database should be rack aware. This improves availability
- more information: https://docs.redislabs.com/latest/rs/concepts/high-availability/rack-zone-awareness/'
type: boolean
redisEnterpriseCluster:
description: Connection to Redis Enterprise Cluster
properties:
name:
description: The name of the Redis Enterprise Cluster where the
database should be stored.
type: string
required:
- name
type: object
replicaSources:
description: What databases to replicate from
items:
properties:
clientKeySecret:
description: Secret that defines what client key to use. The
secret needs 2 keys in it's map, "cert" that is the PEM encoded
certificate and "key" that is the PEM encoded private key
type: string
compression:
description: GZIP Compression level (0-9) to use for replication
type: integer
replicaSourceName:
description: Kubernetes resource name of type ReplicaSourceType
type: string
replicaSourceType:
description: Determines what Kuberetes resource ReplicaSourceName
refers to SECRET - Get URI from secret named in ReplicaSourceName. The
secret will have a uri key that defines the complete, redis://
URI REDB - Determine URI from Kubernetes REDB resource named
in ReplicaSourceName
type: string
serverCertSecret:
description: Secret that defines the Server's certificate. The
secret needs 1 key in it's map, "cert" that is the PEM encoded
certificate
type: string
tlsSniName:
description: TLS SNI Name to use
type: string
required:
- replicaSourceName
- replicaSourceType
type: object
type: array
replication:
description: In-memory database replication. When enabled, database
will have replica shard for every master - leading to higher availability.
type: boolean
rolesPermissions:
description: List of Redis Enteprise ACL and Role bindings to apply
items:
description: Redis Enterprise Role and ACL Binding
properties:
acl:
description: Acl Name of RolePermissionType
type: string
role:
description: Role Name of RolePermissionType
type: string
type:
description: Type of Redis Enterprise Database Role Permission
type: string
required:
- acl
- role
- type
type: object
type: array
shardCount:
description: Number of database server-side shards
type: integer
tlsMode:
description: Require SSL authenticated and encrypted connections to
the database. enabled - all incoming connections to the Database must
use SSL. disabled - no incoming connection to the Database should
use SSL. replica_ssl - databases that replicate from this one need
to use SSL.
enum:
- disabled
- enabled
- replica_ssl
type: string
type: object
status:
description: RedisEnterpriseDatabaseStatus defines the observed state of
RedisEnterpriseDatabase
properties:
createdTime:
description: Time when the database was created
type: string
databaseUID:
description: Database UID provided by redis enterprise
type: string
internalEndpoints:
description: Endpoints listed internally by the Redis Enterprise Cluster.
Can be used to correlate a ReplicaSourceStatus entry.
items:
properties:
host:
description: Hostname assigned to the database
type: string
port:
description: Database port name
type: integer
type: object
type: array
lastActionStatus:
description: Status of the last action done by operator on this database
type: string
lastActionUid:
description: UID of the last action done by operator on this database
type: string
lastUpdated:
description: Time when the database was last updated
type: string
observedGeneration:
description: 'The generation (built in update counter of K8s) of the
REDB resource that was fully acted upon, meaning that all changes
were handled and sent as an API call to the Redis Enterprise Cluster
(REC). This field value should equal the current generation when the
resource changes were handled. Note: the lastActionStatus field tracks
actions handled asynchronously by the Redis Enterprise Cluster.'
format: int64
type: integer
redisEnterpriseCluster:
description: The Redis Enterprise Cluster Object this Resource is associated
with
type: string
replicaSourceStatuses:
description: ReplicaSource statuses
items:
properties:
endpointHost:
description: The internal host name of the replica source database.
Can be used as an identifier. See the internalEndpoints list
on the REDB status.
type: string
lag:
description: Lag in millisec between source and destination (while
synced).
type: integer
lastError:
description: Last error encountered when syncing from the source.
type: string
lastUpdate:
description: Time when we last receive an update from the source.
type: string
rdbSize:
description: The source’s RDB size to be transferred during the
syncing phase.
type: integer
rdbTransferred:
description: Number of bytes transferred from the source’s RDB
during the syncing phase.
type: integer
status:
description: Sync status of this source
type: string
required:
- endpointHost
type: object
type: array
shardStatuses:
additionalProperties:
type: integer
description: Aggregated statuses of shards
type: object
specStatus:
description: Whether the desired specification is valid
type: string
status:
description: The status of the database
type: string
version:
description: Database compatibility version
type: string
type: object
type: object
---
apiVersion: v1
kind: Service
metadata:
name: admission
spec:
ports:
- port: 443
protocol: TCP
targetPort: 8443
selector:
name: redis-enterprise-operator
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: redis-enterprise-operator
spec:
replicas: 1
selector:
matchLabels:
name: redis-enterprise-operator
template:
metadata:
labels:
name: redis-enterprise-operator
spec:
serviceAccountName: redis-enterprise-operator
containers:
- name: redis-enterprise-operator
image: registry.connect.redhat.com/redislabs/redis-enterprise-operator:6.2.8-15
securityContext:
runAsUser: 1001
command:
- redis-enterprise-operator
imagePullPolicy: Always
envFrom:
- configMapRef:
name: operator-environment-config
optional: true
ports:
- containerPort: 8080
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- name: OPERATOR_NAME
value: redis-enterprise-operator
- name: DEPLOY_RHEL7
value: "true"
resources:
limits:
cpu: 4000m
memory: 512Mi
requests:
cpu: 500m
memory: 256Mi
livenessProbe:
failureThreshold: 3
successThreshold: 1
periodSeconds: 5
timeoutSeconds: 10
httpGet:
path: /healthz
port: 8080
scheme: HTTP
- name: admission
image: registry.connect.redhat.com/redislabs/redis-enterprise-operator:6.2.8-15
command:
- /usr/local/bin/admission
imagePullPolicy: Always
envFrom:
- configMapRef:
name: operator-environment-config
optional: true
ports:
- containerPort: 443
env:
- name: POD_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
resources:
limits:
cpu: 1000m
memory: 512Mi
requests:
cpu: 250m
memory: 256Mi
readinessProbe:
failureThreshold: 3
successThreshold: 1
periodSeconds: 5
timeoutSeconds: 10
httpGet:
path: /healthz
port: 8443
scheme: HTTPS
livenessProbe:
failureThreshold: 3
successThreshold: 1
periodSeconds: 5
timeoutSeconds: 10
httpGet:
path: /liveness
port: 8443
scheme: HTTPS
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: redisenterpriseclusters.app.redislabs.com
spec:
group: app.redislabs.com
names:
kind: RedisEnterpriseCluster
listKind: RedisEnterpriseClusterList
plural: redisenterpriseclusters
singular: redisenterprisecluster
shortNames:
- rec
scope: Namespaced
preserveUnknownFields: false
versions:
- name: v1
served: true
storage: false
subresources:
status: {}
additionalPrinterColumns:
- jsonPath: .spec.nodes
name: Nodes
type: string
- jsonPath: .spec.redisEnterpriseImageSpec.versionTag
name: Version
type: string
- jsonPath: .status.state
name: State
type: string
- jsonPath: .status.specStatus
name: Spec Status
type: string
- jsonPath: .status.licenseStatus.licenseState
name: License State
type: string
- jsonPath: .status.licenseStatus.shardsLimit
name: Shards Limit
type: string
- jsonPath: .status.licenseStatus.expirationDate
name: License Expiration Date
type: string
- name: Age
type: date
jsonPath: .metadata.creationTimestamp
schema:
openAPIV3Schema:
description: RedisEnterpriseCluster is the Schema for the redisenterpriseclusters
API
properties:
apiVersion:
type: string
kind:
type: string
metadata:
type: object
status:
type: object
properties:
specStatus:
type: string
state:
type: string
modules:
type: array
items:
type: object
properties:
name:
type: string
displayName:
type: string
versions:
type: array
items:
type: string
licenseStatus:
type: object
properties:
licenseState:
type: string
activationDate:
type: string
expirationDate:
type: string
shardsLimit:
type: integer
spec:
description: RedisEnterpriseClusterSpec defines the desired state of RedisEnterpriseCluster
properties:
activeActive:
description: Specification for ActiveActive setup
properties:
apiIngressUrl:
description: RS API URL
type: string
dbIngressSuffix:
description: DB ENDPOINT SUFFIX - will be used to set the db host.
ingress <db name><db ingress suffix> Creates a host name so it
should be unique if more than one db is created on the cluster
with the same name
type: string
ingressAnnotations:
additionalProperties:
type: string
description: Used for ingress controllers such as ha-proxy or nginx
in GKE
type: object
method:
description: Used to distinguish between different platforms implementation
enum:
- openShiftRoute
- ingress
type: string
required:
- apiIngressUrl
- dbIngressSuffix
- method
type: object
antiAffinityAdditionalTopologyKeys:
description: Additional antiAffinity terms in order to support installation
on different zones/vcenters
items:
type: string
type: array
bootstrapperImageSpec:
description: Specification for Bootstrapper container image
properties:
imagePullPolicy:
description: PullPolicy describes a policy for if/when to pull a
container image
type: string
repository:
description: Repository
type: string
versionTag:
type: string
type: object
bootstrapperResources:
description: Compute resource requirements for bootstrapper containers
properties:
limits:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Limits describes the maximum amount of compute resources
allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
type: object
requests:
additionalProperties:
anyOf:
- type: integer
- type: string
pattern: ^(\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\+|-)?(([0-9]+(\.[0-9]*)?)|(\.[0-9]+))))?$
x-kubernetes-int-or-string: true
description: 'Requests describes the minimum amount of compute resources
required. If Requests is omitted for a container, it defaults
to Limits if that is explicitly specified, otherwise to an implementation-defined
value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/'
type: object
type: object
clusterCredentialSecretName:
description: Secret Name/Path to use for Cluster Credentials. If left
blank, will use cluster name
type: string
clusterCredentialSecretRole:
description: Used only if ClusterCredentialSecretType is vault, to define
vault role to be used. If blank, defaults to "redis-enterprise-operator"
type: string
clusterCredentialSecretType:
description: Type of Secret to use for ClusterCredential, Vault, Kuberetes,...