-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2278 from lsst-sqre/tickets/DM-39664
[DM-39664] Deploy MirrorMaker 2 for replicating EFD data at the Summit (Yagan) to Base (Manke)
- Loading branch information
Showing
13 changed files
with
323 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
83 changes: 83 additions & 0 deletions
83
applications/sasquatch/charts/strimzi-kafka/templates/source-connect.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
{{- if .Values.mirrormaker2.sourceConnect.enabled }} | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaConnect | ||
metadata: | ||
name: {{ .Values.cluster.name }}-source | ||
annotations: | ||
# Use Connect REST API to configure connectors | ||
strimzi.io/use-connector-resources: "false" | ||
spec: | ||
image: {{ .Values.connect.image | quote }} | ||
replicas: {{ .Values.connect.replicas }} | ||
bootstrapServers: {{ .Values.cluster.name }}-kafka-bootstrap:9093 | ||
tls: | ||
trustedCertificates: | ||
- secretName: {{ .Values.cluster.name }}-cluster-ca-cert | ||
certificate: ca.crt | ||
authentication: | ||
type: tls | ||
certificateAndKey: | ||
secretName: {{ .Values.cluster.name }}-source-connect | ||
certificate: user.crt | ||
key: user.key | ||
config: | ||
group.id: {{ .Values.cluster.name }}-source-connect | ||
offset.storage.topic: {{ .Values.cluster.name }}-source-connect-offsets | ||
config.storage.topic: {{ .Values.cluster.name }}-source-connect-configs | ||
status.storage.topic: {{ .Values.cluster.name }}-source-connect-status | ||
# -1 means it will use the default replication factor configured in the broker | ||
config.storage.replication.factor: -1 | ||
offset.storage.replication.factor: -1 | ||
status.storage.replication.factor: -1 | ||
key.converter: io.confluent.connect.avro.AvroConverter | ||
key.converter.schemas.enable: true | ||
key.converter.schema.registry.url: http://sasquatch-source-schema-registry.sasquatch:8081 | ||
value.converter: io.confluent.connect.avro.AvroConverter | ||
value.converter.schemas.enable: true | ||
value.converter.schema.registry.url: http://sasquatch-source-schema-registry.sasquatch:8081 | ||
request.timeout.ms: 120000 | ||
resources: | ||
requests: | ||
cpu: "2" | ||
memory: 4Gi | ||
limits: | ||
cpu: "8" | ||
memory: 24Gi | ||
jvmOptions: | ||
"-Xmx": "8g" | ||
"-Xms": "8g" | ||
--- | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaUser | ||
metadata: | ||
name: {{ .Values.cluster.name }}-source-connect | ||
labels: | ||
strimzi.io/cluster: {{ .Values.cluster.name }} | ||
spec: | ||
authentication: | ||
type: tls | ||
authorization: | ||
type: simple | ||
acls: | ||
- resource: | ||
type: group | ||
name: {{ .Values.cluster.name }}-source-connect | ||
operation: Read | ||
- resource: | ||
type: group | ||
name: "*" | ||
patternType: literal | ||
operation: All | ||
- resource: | ||
type: topic | ||
name: "*" | ||
patternType: literal | ||
type: allow | ||
host: "*" | ||
operation: All | ||
quotas: | ||
producerByteRate: 1073741824 | ||
consumerByteRate: 1073741824 | ||
requestPercentage: 90 | ||
controllerMutationRate: 1000 | ||
{{- end }} |
60 changes: 60 additions & 0 deletions
60
applications/sasquatch/charts/strimzi-kafka/templates/source-schema-registry.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{{- if .Values.mirrormaker2.sourceRegistry.enabled }} | ||
--- | ||
apiVersion: roundtable.lsst.codes/v1beta1 | ||
kind: StrimziSchemaRegistry | ||
metadata: | ||
name: {{ .Values.cluster.name }}-source-schema-registry | ||
spec: | ||
listener: tls | ||
compatibilityLevel: none | ||
--- | ||
apiVersion: kafka.strimzi.io/v1beta2 | ||
kind: KafkaUser | ||
metadata: | ||
name: {{ .Values.cluster.name }}-source-schema-registry | ||
labels: | ||
strimzi.io/cluster: {{ .Values.cluster.name }} | ||
spec: | ||
authentication: | ||
type: tls | ||
authorization: | ||
# Official docs on authorizations required for the Schema Registry: | ||
# https://docs.confluent.io/current/schema-registry/security/index.html#authorizing-access-to-the-schemas-topic | ||
type: simple | ||
acls: | ||
# Allow Read, Write and DescribeConfigs operations on the | ||
# schemas topic | ||
- resource: | ||
type: topic | ||
name: {{ .Values.mirrormaker2.sourceRegistry.schemaTopic }} | ||
patternType: literal | ||
operation: Read | ||
type: allow | ||
- resource: | ||
type: topic | ||
name: {{ .Values.mirrormaker2.sourceRegistry.schemaTopic }} | ||
patternType: literal | ||
operation: Write | ||
type: allow | ||
- resource: | ||
type: topic | ||
name: {{ .Values.mirrormaker2.sourceRegistry.schemaTopic }} | ||
patternType: literal | ||
operation: DescribeConfigs | ||
type: allow | ||
# Allow all operations on the schema-registry* group | ||
- resource: | ||
type: group | ||
name: schema-registry | ||
patternType: prefix | ||
operation: All | ||
type: allow | ||
# Allow Describe on the __consumer_offsets topic | ||
# (The official docs also mention DescribeConfigs?) | ||
- resource: | ||
type: topic | ||
name: "__consumer_offsets" | ||
patternType: literal | ||
operation: Describe | ||
type: allow | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.