forked from RedisLabs/redis-enterprise-k8s-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenshift.bundle.yaml
15579 lines (15578 loc) · 687 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
---
apiVersion: security.openshift.io/v1
kind: SecurityContextConstraints
metadata:
name: redis-enterprise-scc
annotations:
kubernetes.io/description: redis-enterprise-scc is the minimal SCC needed to run Redis Enterprise nodes on Kubernetes.
It provides the same features as restricted-v2 SCC, but allows pods to enable the SYS_RESOURCE capability,
which is required by Redis Enterprise nodes to manage file descriptor limits and OOM scores for database shards.
Additionally, it requires pods to run as UID/GID 1001, which are the UID/GID used within the Redis Enterprise node containers.
allowedCapabilities:
- SYS_RESOURCE
allowHostDirVolumePlugin: false
allowHostIPC : false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegeEscalation: false
allowPrivilegedContainer: false
readOnlyRootFilesystem: false
runAsUser:
type: MustRunAs
uid: 1001
fsGroup:
type: MustRunAs
ranges:
- min: 1001
max: 1001
seLinuxContext:
type: MustRunAs
seccompProfiles:
- runtime/default
supplementalGroups:
type: RunAsAny
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: redis-enterprise-operator
labels:
app: redis-enterprise
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",
"redisenterpriseremoteclusters", "redisenterpriseremoteclusters/status",
"redisenterpriseremoteclusters/finalizers",
"redisenterpriseactiveactivedatabases", "redisenterpriseactiveactivedatabases/status",
"redisenterpriseactiveactivedatabases/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", "list", "watch"]
- 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: ["networking.k8s.io"]
resources: ["ingresses"]
verbs: ["create", "patch", "replace", "delete", "deletecollection", "read", "list", "listallnamespaces",
"watch", "watchlist", "watchlistallnamespaces", "patchstatus", "readstatus", "replacestatus", "update"]
- apiGroups: [ "networking.istio.io" ]
resources: [ "gateways", "virtualservices" ]
verbs: [ "get", "watch", "list", "update", "patch", "create", "delete" ]
- apiGroups: ["route.openshift.io"]
resources: ["routes", "routes/custom-host"]
verbs: ["create", "delete", "deletecollection", "get", "list", "patch", "update", "watch"]
- apiGroups: ["security.openshift.io"]
resourceNames: ["nonroot"]
resources: ["securitycontextconstraints"]
verbs: ["use"]
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: redis-enterprise-operator
labels:
app: redis-enterprise
---
kind: RoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: redis-enterprise-operator
labels:
app: redis-enterprise
subjects:
- kind: ServiceAccount
name: redis-enterprise-operator
roleRef:
kind: Role
name: redis-enterprise-operator
apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: Service
metadata:
name: admission
labels:
app: redis-enterprise
spec:
ports:
- port: 443
protocol: TCP
targetPort: 8443
selector:
name: redis-enterprise-operator
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: redisenterpriseclusters.app.redislabs.com
labels:
app: redis-enterprise
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
ocspStatus:
description: An API object that represents the cluster's OCSP status
properties:
certStatus:
description: Indicates the proxy certificate status - GOOD/REVOKED/UNKNOWN.
type: string
nextUpdate:
description: The time at or before which newer information will
be available about the status of the certificate (if available)
type: string
producedAt:
description: The time at which the OCSP responder signed this
response.
type: string
responderUrl:
description: The OCSP responder url from which this status came
from.
type: string
revocationTime:
description: The time at which the certificate was revoked or
placed on hold.
type: string
thisUpdate:
description: The most recent time at which the status being indicated
is known by the responder to have been correct.
type: string
type: object
licenseStatus:
type: object
properties:
licenseState:
type: string
activationDate:
type: string
expirationDate:
type: string
shardsLimit:
type: integer
bundledDatabaseVersions:
description: Versions of open source databases bundled by Redis Enterprise
Software - please note that in order to use a specific version it
should be supported by the ‘upgradePolicy’ - ‘major’ or ‘latest’ according
to the desired version (major/minor)
items:
properties:
dbType:
type: string
version:
type: string
required:
- dbType
- version
type: object
type: array
managedAPIs:
description: Indicates cluster APIs that are being managed by the
operator. This only applies to cluster APIs which are optionally-managed
by the operator, such as cluster LDAP configuration. Most other
APIs are automatically managed by the operator, and are not listed
here.
properties:
ldap:
description: Indicate whether cluster LDAP configuration is managed
by the operator. When this is enabled, the operator will reconcile
the cluster LDAP configuration according to the '.spec.ldap'
field in the RedisEnterpriseCluster resource.
type: boolean
type: object
spec:
description: RedisEnterpriseClusterSpec defines the desired state of RedisEnterpriseCluster
properties:
activeActive:
description: Specification for ActiveActive setup. At most one of
ingressOrRouteSpec or activeActive fields can be set at the same
time.
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:
digestHash:
description: 'The digest hash of the container image to pull.
When specified, the container image is pulled according to the
digest hash instead of the image tag. The versionTag field must
also be specified with the image tag matching this digest hash.
Note: This field is only supported for OLM deployments.'
type: string
imagePullPolicy:
description: The image pull policy to be applied to the container
image. One of Always, Never, IfNotPresent.
type: string
repository:
description: The repository (name) of the container image to be
deployed.
type: string
versionTag:
description: The tag of the container image to be deployed.
type: string
type: object
bootstrapperResources:
description: Compute resource requirements for bootstrapper containers
properties:
claims:
items:
properties:
name:
type: string
required:
- name
type: object
x-kubernetes-map-type: atomic
type: array
x-kubernetes-list-type: set
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. To be
used only if ClusterCredentialSecretType is vault. 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,...
If left blank, will default ot kubernetes secrets
enum:
- vault
- kubernetes
type: string
clusterRecovery:
description: ClusterRecovery initiates cluster recovery when set to
true. Note that this field is cleared automatically after the cluster
is recovered
type: boolean
containerTimezone:
description: Container timezone configuration. While the default timezone
on all containers is UTC, this setting can be used to set the timezone
on services rigger/bootstrapper/RS containers. Currently the only
supported value is to propagate the host timezone to all containers.
properties:
propagateHost:
description: Identifies that container timezone should be in sync with the host.
type: object
type: object
createServiceAccount:
description: Whether to create service account
type: boolean
dataInternodeEncryption:
description: Internode encryption (INE) cluster wide policy. An optional boolean setting.
Specifies if INE should be on/off for new created REDBs.
May be overridden for specific REDB via similar setting,
please view the similar setting for REDB for more info.
type: boolean
encryptPkeys:
description: 'Private key encryption Possible values: true/false'
type: boolean
certificates:
description: RS Cluster Certificates.
Used to modify the certificates used by the cluster.
See the "RSClusterCertificates" struct described above to see the supported certificates.
properties:
apiCertificateSecretName:
description: Secret name to use for cluster's API certificate.
If left blank, a cluster-provided certificate will be used.
type: string
cmCertificateSecretName:
description: Secret name to use for cluster's CM (Cluster Manager) certificate.
If left blank, a cluster-provided certificate will be used.
type: string
metricsExporterCertificateSecretName:
description: Secret name to use for cluster's Metrics Exporter certificate.
If left blank, a cluster-provided certificate will be used.
type: string
proxyCertificateSecretName:
description: Secret name to use for cluster's Proxy certificate.
If left blank, a cluster-provided certificate will be used.
type: string
syncerCertificateSecretName:
description: Secret name to use for cluster's Syncer certificate.
If left blank, a cluster-provided certificate will be used.
type: string
ldapClientCertificateSecretName:
description: Secret name to use for cluster's LDAP client certificate.
If left blank, LDAP client certificate authentication will be disabled.
type: string
type: object
enforceIPv4:
description: Sets ENFORCE_IPV4 environment variable
type: boolean
extraLabels:
additionalProperties:
type: string
description: Labels that the user defines for their convenience
type: object
hostAliases:
items:
description: HostAlias holds the mapping between IP and hostnames
that will be injected as an entry in the pod's hosts file.
properties:
hostnames:
description: Hostnames for the above IP address.
items:
type: string
type: array
ip:
description: IP address of the host file entry.
type: string
type: object
type: array
ingressOrRouteSpec:
description: Access configurations for the Redis Enterprise Cluster
and Databases. Note - this feature is currently in preview. For
this feature to take effect, set a boolean environment variable
with the name "ENABLE_ALPHA_FEATURES" to True. This variable can
be set via the redis-enterprise-operator pod spec, or through the
operator-environment-config Config Map. At most one of ingressOrRouteSpec
or activeActive fields can be set at the same time.
properties:
apiFqdnUrl:
description: RS API URL
type: string
dbFqdnSuffix:
description: DB ENDPOINT SUFFIX - will be used to set the db host
ingress <db name><db fqdn 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: Additional annotations to set on ingress resources
created by the operator
type: object
method:
description: Used to distinguish between different platforms implementation.
enum:
- openShiftRoute
- ingress
- istio
type: string
required:
- apiFqdnUrl
- dbFqdnSuffix
- method
type: object
services:
description: Customization options for operator-managed service resources
created for Redis Enterprise clusters and databases
properties:
apiService:
description: Customization options for the REC API service.
properties:
type:
description: Type of service to create for the REC API service.
Defaults to ClusterIP service, if not specified otherwise.
enum:
- ClusterIP
- NodePort
- LoadBalancer
type: string
type: object
servicesAnnotations:
additionalProperties:
type: string
description: Global additional annotations to set on service resources
created by the operator.
The specified annotations will not override annotations that already exist and didn't originate from the operator.
type: object
type: object
ldap:
description: Cluster-level LDAP configuration, such as server addresses,
protocol, authentication and query settings.
properties:
authenticationQuery:
description: Configuration of authentication queries, mapping
between the username, provided to the cluster for authentication,
and the LDAP Distinguished Name.
properties:
query:
description: Configuration for a search query. Mutually exclusive
with the 'template' field. The substring '%u' in the query
filter will be replaced with the username.
properties:
base:
description: The Distinguished Name of the entry at which
to start the search, e.g., 'ou=dev,dc=example,dc=com'.
type: string
filter:
description: An RFC-4515 string representation of the
filter to apply in the search. For an authentication
query, the substring '%u' will be replaced with the
username, e.g., '(cn=%u)'. For an authorization query,
the substring '%D' will be replaced with the user's
Distinguished Name, e.g., '(members=%D)'.
type: string
scope:
description: 'The search scope for an LDAP query. One
of: BaseObject, SingleLevel, WholeSubtree'
enum:
- BaseObject
- SingleLevel
- WholeSubtree
type: string
required:
- base
- filter
- scope
type: object
template:
description: Configuration for a template query. Mutually
exclusive with the 'query' field. The substring '%u' will
be replaced with the username, e.g., 'cn=%u,ou=dev,dc=example,dc=com'.
type: string
type: object
authorizationQuery:
description: Configuration of authorization queries, mapping between
a user's Distinguished Name and its group memberships.
properties:
attribute:
description: Configuration for an attribute query. Mutually
exclusive with the 'query' field. Holds the name of an attribute
of the LDAP user entity that contains a list of the groups
that the user belongs to, e.g., 'memberOf'.
type: string
query:
description: Configuration for a search query. Mutually exclusive
with the 'attribute' field. The substring '%D' in the query
filter will be replaced with the user's Distinguished Name.
properties:
base:
description: The Distinguished Name of the entry at which
to start the search, e.g., 'ou=dev,dc=example,dc=com'.
type: string
filter:
description: An RFC-4515 string representation of the
filter to apply in the search. For an authentication
query, the substring '%u' will be replaced with the
username, e.g., '(cn=%u)'. For an authorization query,
the substring '%D' will be replaced with the user's
Distinguished Name, e.g., '(members=%D)'.
type: string
scope:
description: 'The search scope for an LDAP query. One
of: BaseObject, SingleLevel, WholeSubtree'
enum:
- BaseObject
- SingleLevel
- WholeSubtree
type: string
required:
- base
- filter
- scope
type: object
type: object
bindCredentialsSecretName:
description: Name of a secret within the same namespace, holding
the credentials used to communicate with the LDAP server for
authentication queries. The secret must have a key named 'dn'
with the Distinguished Name of the user to execute the query,
and 'password' with its password. If left blank, credentials-based
authentication is disabled.
type: string
caCertificateSecretName:
description: Name of a secret within the same namespace, holding
a PEM-encoded CA certificate for validating the TLS connection
to the LDAP server. The secret must have a key named 'cert'
with the certificate data. This field is applicable only when
the protocol is LDAPS or STARTTLS.
type: string
cacheTTLSeconds:
default: 300
description: The maximum TTL of cached entries.
type: integer
enabledForControlPlane:
default: false
description: Whether to enable LDAP for control plane access.
Disabled by default.
type: boolean
enabledForDataPlane:
default: false
description: Whether to enable LDAP for data plane access. Disabled
by default.
type: boolean
protocol:
description: 'Specifies the LDAP protocol to use. One of: LDAP,
LDAPS, STARTTLS.'
enum:
- LDAP
- LDAPS
- STARTTLS
type: string
servers:
description: One or more LDAP servers. If multiple servers are
specified, they must all share an identical organization tree
structure.
items:
description: Address of an LDAP server.
properties:
host:
description: Host name of the LDAP server
type: string
port:
description: Port number of the LDAP server. If unspecified,
defaults to 389 for LDAP and STARTTLS protocols, and 636
for LDAPS protocol.
format: int32
type: integer
required:
- host
type: object
type: array
required:
- authenticationQuery
- authorizationQuery
- protocol
- servers
type: object
license:
description: Redis Enterprise License
type: string
licenseSecretName:
description: K8s secret or Vault Secret Name/Path to use for Cluster
License. When left blank, the license is read from the "license" field.
Note that you can't specify non-empty values in both "license" and
"licenseSecretName", only one of these fields can be used to pass
the license string. The license needs to be stored under the key "license".
type: string
nodeSelector:
additionalProperties:
type: string
description: Selector for nodes that could fit Redis Enterprise pod
type: object
ocspConfiguration:
description: An API object that represents the cluster's OCSP configuration.
To enable OCSP, the cluster's proxy certificate should contain the
OCSP responder URL.
properties:
ocspFunctionality:
description: Whether to enable/disable OCSP mechanism for the cluster.
type: boolean
queryFrequency:
description: Determines the interval (in seconds) in which the control
plane will poll the OCSP responder for a new status for the server
certificate. Minimum value is 60. Maximum value is 86400.
type: integer
recoveryFrequency:
description: Determines the interval (in seconds) in which the control
plane will poll the OCSP responder for a new status for the server
certificate when the current staple is invalid. Minimum value
is 60. Maximum value is 86400.
type: integer
recoveryMaxTries:
description: Determines the maximum number for the OCSP recovery
attempts. After max number of tries passed, the control plane
will revert back to the regular frequency. Minimum value is 1.
Maximum value is 100.
type: integer
responseTimeout:
description: Determines the time interval (in seconds) for which
the request waits for a response from the OCSP responder. Minimum
value is 1. Maximum value is 60.
type: integer
type: object
nodes:
description: Number of Redis Enterprise nodes (pods)
format: int32
type: integer
persistentSpec:
description: Specification for Redis Enterprise Cluster persistence
properties:
enabled:
description: Whether to add persistent volume to Redis Enterprise
pods
type: boolean
storageClassName:
description: Storage class for persistent volume in Redis Enterprise
pods Leave empty to use the default
type: string
volumeSize:
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
type: object
podAnnotations:
additionalProperties:
type: string
description: pod annotations
type: object
podAntiAffinity:
description: 'Override for the default anti-affinity rules of the Redis
Enterprise pods.
More info: https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#an-example-of-a-pod-that-uses-pod-affinity'
properties:
preferredDuringSchedulingIgnoredDuringExecution:
items:
properties:
podAffinityTerm:
properties:
labelSelector:
properties:
matchExpressions:
items:
properties:
key:
type: string
operator:
type: string
values:
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
type: object
type: object
namespaceSelector:
properties:
matchExpressions:
items:
properties:
key:
type: string
operator:
type: string
values:
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
type: object
type: object
namespaces:
items:
type: string
type: array
topologyKey:
type: string
required:
- topologyKey
type: object
weight:
format: int32
type: integer
required:
- podAffinityTerm
- weight
type: object
type: array
requiredDuringSchedulingIgnoredDuringExecution:
items:
properties:
labelSelector:
properties:
matchExpressions:
items:
properties:
key:
type: string
operator:
type: string
values:
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
type: object
type: object
namespaceSelector:
properties:
matchExpressions:
items:
properties:
key:
type: string
operator:
type: string
values:
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchLabels:
additionalProperties:
type: string
type: object
type: object
namespaces:
items:
type: string
type: array
topologyKey:
type: string
required:
- topologyKey
type: object
type: array
type: object
podSecurityPolicyName:
description: "DEPRECATED PodSecurityPolicy support is removed in Kubernetes
v1.25 and the use of this field is invalid for use when running
on Kubernetes v1.25+. Future versions of the RedisEnterpriseCluster
API will remove support for this field altogether. For migration
instructions, see https://kubernetes.io/docs/tasks/configure-pod-container/migrate-from-psp/
\n Name of pod security policy to use on pods"
type: string
podStartingPolicy:
description: Mitigation setting for STS pods stuck in "ContainerCreating"
properties:
enabled:
description: Whether to detect and attempt to mitigate pod startup
issues
type: boolean
startingThresholdSeconds:
description: Time in seconds to wait for a pod to be stuck while
starting up before action is taken. If set to 0, will be treated
as if disabled.
format: int32
type: integer
required:
- enabled
- startingThresholdSeconds
type: object
podTolerations:
description: 'Tolerations that are added to all managed pods. More
information: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/'
items:
properties:
effect:
type: string
key:
type: string
operator:
type: string
tolerationSeconds:
format: int64
type: integer
value:
type: string
type: object
type: array
priorityClassName:
description: Adds the priority class to pods managed by the operator
type: string
pullSecrets:
description: 'PullSecrets is an optional list of references to secrets
in the same namespace to use for pulling any of the images. If specified,
these secrets will be passed to individual puller implementations
for them to use. More info: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/'
items:
properties:
name:
description: 'Secret name'
type: string
type: object
type: array
rackAwarenessNodeLabel:
description: Node label that specifies rack ID - if specified, will
create rack aware cluster. Rack awareness requires node label must
exist on all nodes. Additionally, operator needs a special cluster
role with permission to list nodes.
type: string
redisEnterpriseAdditionalPodSpecAttributes:
description: ADVANCED USAGE USE AT YOUR OWN RISK - specify pod attributes
that are required for the statefulset - Redis Enterprise pods. Pod
attributes managed by the operator might override these settings.
Also make sure the attributes are supported by the K8s version running
on the cluster - the operator does not validate that.
properties:
activeDeadlineSeconds:
format: int64
type: integer
affinity:
properties:
nodeAffinity:
properties:
preferredDuringSchedulingIgnoredDuringExecution:
items:
properties:
preference:
properties:
matchExpressions:
items:
properties:
key:
type: string
operator:
type: string
values:
items:
type: string
type: array
required:
- key
- operator
type: object
type: array
matchFields:
items:
properties:
key:
type: string
operator:
type: string