-
Notifications
You must be signed in to change notification settings - Fork 0
/
strimzi-cluster-operator-0.27.1.yaml
15891 lines (15861 loc) · 794 KB
/
strimzi-cluster-operator-0.27.1.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: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: strimzi-cluster-operator-entity-operator-delegation
labels:
app: strimzi
# The Entity Operator cluster role must be bound to the cluster operator service account so that it can delegate the cluster role to the Entity Operator.
# This must be done to avoid escalating privileges which would be blocked by Kubernetes.
subjects:
- kind: ServiceAccount
name: strimzi-cluster-operator
namespace: myproject
roleRef:
kind: ClusterRole
name: strimzi-entity-operator
apiGroup: rbac.authorization.k8s.io
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: strimzipodsets.core.strimzi.io
labels:
app: strimzi
strimzi.io/crd-install: "true"
spec:
group: core.strimzi.io
names:
kind: StrimziPodSet
listKind: StrimziPodSetList
singular: strimzipodset
plural: strimzipodsets
shortNames:
- sps
categories:
- strimzi
scope: Namespaced
conversion:
strategy: None
versions:
- name: v1beta2
served: true
storage: true
subresources:
status: {}
additionalPrinterColumns:
- name: Pods
description: Number of pods managed by the StrimziPodSet
jsonPath: .status.pods
type: integer
- name: Ready Pods
description: Number of ready pods managed by the StrimziPodSet
jsonPath: .status.readyPods
type: integer
- name: Current Pods
description: Number of up-to-date pods managed by the StrimziPodSet
jsonPath: .status.currentPods
type: integer
- name: Age
description: Age of the StrimziPodSet
jsonPath: .metadata.creationTimestamp
type: date
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
selector:
type: object
properties:
matchExpressions:
type: array
items:
type: object
properties:
key:
type: string
operator:
type: string
values:
type: array
items:
type: string
matchLabels:
x-kubernetes-preserve-unknown-fields: true
type: object
description: Selector is a label query which matches all the pods
managed by this `StrimziPodSet`. Only `matchLabels` is supported.
If `matchExpressions` is set, it will be ignored.
pods:
type: array
items:
x-kubernetes-preserve-unknown-fields: true
type: object
description: The Pods managed by this StrimziPodSet.
required:
- selector
- pods
description: The specification of the StrimziPodSet.
status:
type: object
properties:
conditions:
type: array
items:
type: object
properties:
type:
type: string
description: The unique identifier of a condition, used to distinguish
between other conditions in the resource.
status:
type: string
description: The status of the condition, either True, False
or Unknown.
lastTransitionTime:
type: string
description: Last time the condition of a type changed from
one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ',
in the UTC time zone.
reason:
type: string
description: The reason for the condition's last transition
(a single word in CamelCase).
message:
type: string
description: Human-readable message indicating details about
the condition's last transition.
description: List of status conditions.
observedGeneration:
type: integer
description: The generation of the CRD that was last reconciled by
the operator.
pods:
type: integer
description: Number of pods managed by the StrimziPodSet controller.
readyPods:
type: integer
description: Number of pods managed by the StrimziPodSet controller
that are ready.
currentPods:
type: integer
description: Number of pods managed by the StrimziPodSet controller
that have the current revision.
description: The status of the StrimziPodSet.
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: strimzi-kafka-client
labels:
app: strimzi
rules:
- apiGroups:
- ""
resources:
# The Kafka clients (Connect, Mirror Maker, etc.) require "get" permissions to view the node they are on
# This information is used to generate a Rack ID (client.rack option) that is used for consuming from the closest
# replicas when enabled
- nodes
verbs:
- get
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: strimzi-cluster-operator
labels:
app: strimzi
spec:
replicas: 1
selector:
matchLabels:
name: strimzi-cluster-operator
strimzi.io/kind: cluster-operator
template:
metadata:
labels:
name: strimzi-cluster-operator
strimzi.io/kind: cluster-operator
spec:
serviceAccountName: strimzi-cluster-operator
volumes:
- name: strimzi-tmp
emptyDir:
medium: Memory
sizeLimit: 1Mi
- name: co-config-volume
configMap:
name: strimzi-cluster-operator
containers:
- name: strimzi-cluster-operator
image: quay.io/strimzi/operator:0.27.1
ports:
- containerPort: 8080
name: http
args:
- /opt/strimzi/bin/cluster_operator_run.sh
volumeMounts:
- name: strimzi-tmp
mountPath: /tmp
- name: co-config-volume
mountPath: /opt/strimzi/custom-config/
env:
- name: STRIMZI_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: STRIMZI_FULL_RECONCILIATION_INTERVAL_MS
value: "120000"
- name: STRIMZI_OPERATION_TIMEOUT_MS
value: "300000"
- name: STRIMZI_DEFAULT_TLS_SIDECAR_ENTITY_OPERATOR_IMAGE
value: quay.io/strimzi/kafka:0.27.1-kafka-3.0.0
- name: STRIMZI_DEFAULT_KAFKA_EXPORTER_IMAGE
value: quay.io/strimzi/kafka:0.27.1-kafka-3.0.0
- name: STRIMZI_DEFAULT_CRUISE_CONTROL_IMAGE
value: quay.io/strimzi/kafka:0.27.1-kafka-3.0.0
- name: STRIMZI_DEFAULT_TLS_SIDECAR_CRUISE_CONTROL_IMAGE
value: quay.io/strimzi/kafka:0.27.1-kafka-3.0.0
- name: STRIMZI_KAFKA_IMAGES
value: |
2.8.0=quay.io/strimzi/kafka:0.27.1-kafka-2.8.0
2.8.1=quay.io/strimzi/kafka:0.27.1-kafka-2.8.1
3.0.0=quay.io/strimzi/kafka:0.27.1-kafka-3.0.0
- name: STRIMZI_KAFKA_CONNECT_IMAGES
value: |
2.8.0=quay.io/strimzi/kafka:0.27.1-kafka-2.8.0
2.8.1=quay.io/strimzi/kafka:0.27.1-kafka-2.8.1
3.0.0=quay.io/strimzi/kafka:0.27.1-kafka-3.0.0
- name: STRIMZI_KAFKA_MIRROR_MAKER_IMAGES
value: |
2.8.0=quay.io/strimzi/kafka:0.27.1-kafka-2.8.0
2.8.1=quay.io/strimzi/kafka:0.27.1-kafka-2.8.1
3.0.0=quay.io/strimzi/kafka:0.27.1-kafka-3.0.0
- name: STRIMZI_KAFKA_MIRROR_MAKER_2_IMAGES
value: |
2.8.0=quay.io/strimzi/kafka:0.27.1-kafka-2.8.0
2.8.1=quay.io/strimzi/kafka:0.27.1-kafka-2.8.1
3.0.0=quay.io/strimzi/kafka:0.27.1-kafka-3.0.0
- name: STRIMZI_DEFAULT_TOPIC_OPERATOR_IMAGE
value: quay.io/strimzi/operator:0.27.1
- name: STRIMZI_DEFAULT_USER_OPERATOR_IMAGE
value: quay.io/strimzi/operator:0.27.1
- name: STRIMZI_DEFAULT_KAFKA_INIT_IMAGE
value: quay.io/strimzi/operator:0.27.1
- name: STRIMZI_DEFAULT_KAFKA_BRIDGE_IMAGE
value: quay.io/strimzi/kafka-bridge:0.21.3
- name: STRIMZI_DEFAULT_JMXTRANS_IMAGE
value: quay.io/strimzi/jmxtrans:0.27.1
- name: STRIMZI_DEFAULT_KANIKO_EXECUTOR_IMAGE
value: quay.io/strimzi/kaniko-executor:0.27.1
- name: STRIMZI_DEFAULT_MAVEN_BUILDER
value: quay.io/strimzi/maven-builder:0.27.1
- name: STRIMZI_OPERATOR_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: STRIMZI_FEATURE_GATES
value: ""
livenessProbe:
httpGet:
path: /healthy
port: http
initialDelaySeconds: 10
periodSeconds: 30
readinessProbe:
httpGet:
path: /ready
port: http
initialDelaySeconds: 10
periodSeconds: 30
resources:
limits:
cpu: 1000m
memory: 384Mi
requests:
cpu: 200m
memory: 384Mi
strategy:
type: Recreate
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: kafkarebalances.kafka.strimzi.io
labels:
app: strimzi
strimzi.io/crd-install: "true"
spec:
group: kafka.strimzi.io
names:
kind: KafkaRebalance
listKind: KafkaRebalanceList
singular: kafkarebalance
plural: kafkarebalances
shortNames:
- kr
categories:
- strimzi
scope: Namespaced
conversion:
strategy: None
versions:
- name: v1beta2
served: true
storage: true
subresources:
status: {}
additionalPrinterColumns:
- name: Cluster
description: The name of the Kafka cluster this resource rebalances
jsonPath: .metadata.labels.strimzi\.io/cluster
type: string
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
goals:
type: array
items:
type: string
description: A list of goals, ordered by decreasing priority, to use
for generating and executing the rebalance proposal. The supported
goals are available at https://github.com/linkedin/cruise-control#goals.
If an empty goals list is provided, the goals declared in the default.goals
Cruise Control configuration parameter are used.
skipHardGoalCheck:
type: boolean
description: Whether to allow the hard goals specified in the Kafka
CR to be skipped in optimization proposal generation. This can be
useful when some of those hard goals are preventing a balance solution
being found. Default is false.
excludedTopics:
type: string
description: A regular expression where any matching topics will be
excluded from the calculation of optimization proposals. This expression
will be parsed by the java.util.regex.Pattern class; for more information
on the supported formar consult the documentation for that class.
concurrentPartitionMovementsPerBroker:
type: integer
minimum: 0
description: The upper bound of ongoing partition replica movements
going into/out of each broker. Default is 5.
concurrentIntraBrokerPartitionMovements:
type: integer
minimum: 0
description: The upper bound of ongoing partition replica movements
between disks within each broker. Default is 2.
concurrentLeaderMovements:
type: integer
minimum: 0
description: The upper bound of ongoing partition leadership movements.
Default is 1000.
replicationThrottle:
type: integer
minimum: 0
description: The upper bound, in bytes per second, on the bandwidth
used to move replicas. There is no limit by default.
replicaMovementStrategies:
type: array
items:
type: string
description: A list of strategy class names used to determine the
execution order for the replica movements in the generated optimization
proposal. By default BaseReplicaMovementStrategy is used, which
will execute the replica movements in the order that they were generated.
description: The specification of the Kafka rebalance.
status:
type: object
properties:
conditions:
type: array
items:
type: object
properties:
type:
type: string
description: The unique identifier of a condition, used to distinguish
between other conditions in the resource.
status:
type: string
description: The status of the condition, either True, False
or Unknown.
lastTransitionTime:
type: string
description: Last time the condition of a type changed from
one status to another. The required format is 'yyyy-MM-ddTHH:mm:ssZ',
in the UTC time zone.
reason:
type: string
description: The reason for the condition's last transition
(a single word in CamelCase).
message:
type: string
description: Human-readable message indicating details about
the condition's last transition.
description: List of status conditions.
observedGeneration:
type: integer
description: The generation of the CRD that was last reconciled by
the operator.
sessionId:
type: string
description: The session identifier for requests to Cruise Control
pertaining to this KafkaRebalance resource. This is used by the
Kafka Rebalance operator to track the status of ongoing rebalancing
operations.
optimizationResult:
x-kubernetes-preserve-unknown-fields: true
type: object
description: A JSON object describing the optimization result.
description: The status of the Kafka rebalance.
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: strimzi-cluster-operator-kafka-broker-delegation
labels:
app: strimzi
# The Kafka broker cluster role must be bound to the cluster operator service account so that it can delegate the cluster role to the Kafka brokers.
# This must be done to avoid escalating privileges which would be blocked by Kubernetes.
subjects:
- kind: ServiceAccount
name: strimzi-cluster-operator
namespace: myproject
roleRef:
kind: ClusterRole
name: strimzi-kafka-broker
apiGroup: rbac.authorization.k8s.io
---
kind: ConfigMap
apiVersion: v1
metadata:
name: strimzi-cluster-operator
labels:
app: strimzi
data:
log4j2.properties: |
name = COConfig
monitorInterval = 30
appender.console.type = Console
appender.console.name = STDOUT
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n
rootLogger.level = ${env:STRIMZI_LOG_LEVEL:-INFO}
rootLogger.appenderRefs = stdout
rootLogger.appenderRef.console.ref = STDOUT
rootLogger.additivity = false
# Kafka AdminClient logging is a bit noisy at INFO level
logger.kafka.name = org.apache.kafka
logger.kafka.level = WARN
logger.kafka.additivity = false
# Zookeeper is very verbose even on INFO level -> We set it to WARN by default
logger.zookeepertrustmanager.name = org.apache.zookeeper
logger.zookeepertrustmanager.level = WARN
logger.zookeepertrustmanager.additivity = false
# Keeps separate level for Netty logging -> to not be changed by the root logger
logger.netty.name = io.netty
logger.netty.level = INFO
logger.netty.additivity = false
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: strimzi-cluster-operator
labels:
app: strimzi
subjects:
- kind: ServiceAccount
name: strimzi-cluster-operator
namespace: myproject
roleRef:
kind: ClusterRole
name: strimzi-cluster-operator-namespaced
apiGroup: rbac.authorization.k8s.io
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: kafkamirrormakers.kafka.strimzi.io
labels:
app: strimzi
strimzi.io/crd-install: "true"
spec:
group: kafka.strimzi.io
names:
kind: KafkaMirrorMaker
listKind: KafkaMirrorMakerList
singular: kafkamirrormaker
plural: kafkamirrormakers
shortNames:
- kmm
categories:
- strimzi
scope: Namespaced
conversion:
strategy: None
versions:
- name: v1beta2
served: true
storage: true
subresources:
status: {}
scale:
specReplicasPath: .spec.replicas
statusReplicasPath: .status.replicas
labelSelectorPath: .status.labelSelector
additionalPrinterColumns:
- name: Desired replicas
description: The desired number of Kafka MirrorMaker replicas
jsonPath: .spec.replicas
type: integer
- name: Consumer Bootstrap Servers
description: The boostrap servers for the consumer
jsonPath: .spec.consumer.bootstrapServers
type: string
priority: 1
- name: Producer Bootstrap Servers
description: The boostrap servers for the producer
jsonPath: .spec.producer.bootstrapServers
type: string
priority: 1
- name: Ready
description: The state of the custom resource
jsonPath: .status.conditions[?(@.type=="Ready")].status
type: string
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
version:
type: string
description: The Kafka MirrorMaker version. Defaults to {DefaultKafkaVersion}.
Consult the documentation to understand the process required to
upgrade or downgrade the version.
replicas:
type: integer
minimum: 0
description: The number of pods in the `Deployment`.
image:
type: string
description: The docker image for the pods.
consumer:
type: object
properties:
numStreams:
type: integer
minimum: 1
description: Specifies the number of consumer stream threads to
create.
offsetCommitInterval:
type: integer
description: Specifies the offset auto-commit interval in ms.
Default value is 60000.
bootstrapServers:
type: string
description: A list of host:port pairs for establishing the initial
connection to the Kafka cluster.
groupId:
type: string
description: A unique string that identifies the consumer group
this consumer belongs to.
authentication:
type: object
properties:
accessToken:
type: object
properties:
key:
type: string
description: The key under which the secret value is stored
in the Kubernetes Secret.
secretName:
type: string
description: The name of the Kubernetes Secret containing
the secret value.
required:
- key
- secretName
description: Link to Kubernetes Secret containing the access
token which was obtained from the authorization server.
accessTokenIsJwt:
type: boolean
description: Configure whether access token should be treated
as JWT. This should be set to `false` if the authorization
server returns opaque tokens. Defaults to `true`.
audience:
type: string
description: OAuth audience to use when authenticating against
the authorization server. Some authorization servers require
the audience to be explicitly set. The possible values depend
on how the authorization server is configured. By default,
`audience` is not specified when performing the token endpoint
request.
certificateAndKey:
type: object
properties:
certificate:
type: string
description: The name of the file certificate in the Secret.
key:
type: string
description: The name of the private key in the Secret.
secretName:
type: string
description: The name of the Secret containing the certificate.
required:
- certificate
- key
- secretName
description: Reference to the `Secret` which holds the certificate
and private key pair.
clientId:
type: string
description: OAuth Client ID which the Kafka client can use
to authenticate against the OAuth server and use the token
endpoint URI.
clientSecret:
type: object
properties:
key:
type: string
description: The key under which the secret value is stored
in the Kubernetes Secret.
secretName:
type: string
description: The name of the Kubernetes Secret containing
the secret value.
required:
- key
- secretName
description: Link to Kubernetes Secret containing the OAuth
client secret which the Kafka client can use to authenticate
against the OAuth server and use the token endpoint URI.
disableTlsHostnameVerification:
type: boolean
description: Enable or disable TLS hostname verification.
Default value is `false`.
maxTokenExpirySeconds:
type: integer
description: Set or limit time-to-live of the access tokens
to the specified number of seconds. This should be set if
the authorization server returns opaque tokens.
passwordSecret:
type: object
properties:
password:
type: string
description: The name of the key in the Secret under which
the password is stored.
secretName:
type: string
description: The name of the Secret containing the password.
required:
- password
- secretName
description: Reference to the `Secret` which holds the password.
refreshToken:
type: object
properties:
key:
type: string
description: The key under which the secret value is stored
in the Kubernetes Secret.
secretName:
type: string
description: The name of the Kubernetes Secret containing
the secret value.
required:
- key
- secretName
description: Link to Kubernetes Secret containing the refresh
token which can be used to obtain access token from the
authorization server.
scope:
type: string
description: OAuth scope to use when authenticating against
the authorization server. Some authorization servers require
this to be set. The possible values depend on how authorization
server is configured. By default `scope` is not specified
when doing the token endpoint request.
tlsTrustedCertificates:
type: array
items:
type: object
properties:
certificate:
type: string
description: The name of the file certificate in the
Secret.
secretName:
type: string
description: The name of the Secret containing the certificate.
required:
- certificate
- secretName
description: Trusted certificates for TLS connection to the
OAuth server.
tokenEndpointUri:
type: string
description: Authorization server token endpoint URI.
type:
type: string
enum:
- tls
- scram-sha-256
- scram-sha-512
- plain
- oauth
description: Authentication type. Currently the only supported
types are `tls`, `scram-sha-256`, `scram-sha-512`, and `plain`.
`scram-sha-256` and `scram-sha-512` types use SASL SCRAM-SHA-256
and SASL SCRAM-SHA-512 Authentication, respectively. `plain`
type uses SASL PLAIN Authentication. `oauth` type uses SASL
OAUTHBEARER Authentication. The `tls` type uses TLS Client
Authentication. The `tls` type is supported only over TLS
connections.
username:
type: string
description: Username used for the authentication.
required:
- type
description: Authentication configuration for connecting to the
cluster.
config:
x-kubernetes-preserve-unknown-fields: true
type: object
description: 'The MirrorMaker consumer config. Properties with
the following prefixes cannot be set: ssl., bootstrap.servers,
group.id, sasl., security., interceptor.classes (with the exception
of: ssl.endpoint.identification.algorithm, ssl.cipher.suites,
ssl.protocol, ssl.enabled.protocols).'
tls:
type: object
properties:
trustedCertificates:
type: array
items:
type: object
properties:
certificate:
type: string
description: The name of the file certificate in the
Secret.
secretName:
type: string
description: The name of the Secret containing the certificate.
required:
- certificate
- secretName
description: Trusted certificates for TLS connection.
description: TLS configuration for connecting MirrorMaker to the
cluster.
required:
- bootstrapServers
- groupId
description: Configuration of source cluster.
producer:
type: object
properties:
bootstrapServers:
type: string
description: A list of host:port pairs for establishing the initial
connection to the Kafka cluster.
abortOnSendFailure:
type: boolean
description: Flag to set the MirrorMaker to exit on a failed send.
Default value is `true`.
authentication:
type: object
properties:
accessToken:
type: object
properties:
key:
type: string
description: The key under which the secret value is stored
in the Kubernetes Secret.
secretName:
type: string
description: The name of the Kubernetes Secret containing
the secret value.
required:
- key
- secretName
description: Link to Kubernetes Secret containing the access
token which was obtained from the authorization server.
accessTokenIsJwt:
type: boolean
description: Configure whether access token should be treated
as JWT. This should be set to `false` if the authorization
server returns opaque tokens. Defaults to `true`.
audience:
type: string
description: OAuth audience to use when authenticating against
the authorization server. Some authorization servers require
the audience to be explicitly set. The possible values depend
on how the authorization server is configured. By default,
`audience` is not specified when performing the token endpoint
request.
certificateAndKey:
type: object
properties:
certificate:
type: string
description: The name of the file certificate in the Secret.
key:
type: string
description: The name of the private key in the Secret.
secretName:
type: string
description: The name of the Secret containing the certificate.
required:
- certificate
- key
- secretName
description: Reference to the `Secret` which holds the certificate
and private key pair.
clientId:
type: string
description: OAuth Client ID which the Kafka client can use
to authenticate against the OAuth server and use the token
endpoint URI.
clientSecret:
type: object
properties:
key:
type: string
description: The key under which the secret value is stored
in the Kubernetes Secret.
secretName:
type: string
description: The name of the Kubernetes Secret containing
the secret value.
required:
- key
- secretName
description: Link to Kubernetes Secret containing the OAuth
client secret which the Kafka client can use to authenticate
against the OAuth server and use the token endpoint URI.
disableTlsHostnameVerification:
type: boolean
description: Enable or disable TLS hostname verification.
Default value is `false`.
maxTokenExpirySeconds:
type: integer
description: Set or limit time-to-live of the access tokens
to the specified number of seconds. This should be set if
the authorization server returns opaque tokens.
passwordSecret:
type: object
properties:
password:
type: string
description: The name of the key in the Secret under which
the password is stored.
secretName:
type: string
description: The name of the Secret containing the password.
required:
- password
- secretName
description: Reference to the `Secret` which holds the password.
refreshToken:
type: object
properties:
key:
type: string
description: The key under which the secret value is stored
in the Kubernetes Secret.
secretName:
type: string
description: The name of the Kubernetes Secret containing
the secret value.
required:
- key
- secretName
description: Link to Kubernetes Secret containing the refresh
token which can be used to obtain access token from the
authorization server.
scope:
type: string
description: OAuth scope to use when authenticating against
the authorization server. Some authorization servers require
this to be set. The possible values depend on how authorization
server is configured. By default `scope` is not specified
when doing the token endpoint request.
tlsTrustedCertificates:
type: array
items:
type: object
properties:
certificate:
type: string
description: The name of the file certificate in the
Secret.
secretName:
type: string
description: The name of the Secret containing the certificate.
required:
- certificate
- secretName
description: Trusted certificates for TLS connection to the
OAuth server.
tokenEndpointUri:
type: string
description: Authorization server token endpoint URI.
type:
type: string
enum:
- tls
- scram-sha-256
- scram-sha-512
- plain
- oauth
description: Authentication type. Currently the only supported
types are `tls`, `scram-sha-256`, `scram-sha-512`, and `plain`.
`scram-sha-256` and `scram-sha-512` types use SASL SCRAM-SHA-256
and SASL SCRAM-SHA-512 Authentication, respectively. `plain`
type uses SASL PLAIN Authentication. `oauth` type uses SASL
OAUTHBEARER Authentication. The `tls` type uses TLS Client
Authentication. The `tls` type is supported only over TLS
connections.
username:
type: string
description: Username used for the authentication.
required:
- type
description: Authentication configuration for connecting to the
cluster.
config:
x-kubernetes-preserve-unknown-fields: true
type: object
description: 'The MirrorMaker producer config. Properties with
the following prefixes cannot be set: ssl., bootstrap.servers,
sasl., security., interceptor.classes (with the exception of:
ssl.endpoint.identification.algorithm, ssl.cipher.suites, ssl.protocol,
ssl.enabled.protocols).'
tls:
type: object
properties:
trustedCertificates:
type: array
items:
type: object
properties:
certificate:
type: string
description: The name of the file certificate in the
Secret.
secretName:
type: string
description: The name of the Secret containing the certificate.
required:
- certificate
- secretName
description: Trusted certificates for TLS connection.
description: TLS configuration for connecting MirrorMaker to the
cluster.
required:
- bootstrapServers
description: Configuration of target cluster.
resources:
type: object
properties:
limits:
x-kubernetes-preserve-unknown-fields: true
type: object
requests:
x-kubernetes-preserve-unknown-fields: true
type: object
description: CPU and memory resources to reserve.
whitelist:
type: string
description: List of topics which are included for mirroring. This
option allows any regular expression using Java-style regular expressions.
Mirroring two topics named A and B is achieved by using the expression
`A\|B`. Or, as a special case, you can mirror all topics using the
regular expression `*`. You can also specify multiple regular expressions