Created
April 9, 2021 05:48
-
-
Save freeznet/166b64b349e1f62c0cf712e22c33ac67 to your computer and use it in GitHub Desktop.
connector-mesh.yaml
This file contains hidden or 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
| apiVersion: cloud.streamnative.io/v1alpha1 | |
| kind: FunctionMesh | |
| metadata: | |
| name: connector-mesh-demo | |
| spec: | |
| sinks: | |
| - name: data-generator-sink | |
| image: freeznet/pulsar-io-data-generator:2.7.1 | |
| className: org.apache.pulsar.io.datagenerator.DataGeneratorPrintSink | |
| sourceType: "org.apache.pulsar.io.datagenerator.Person" | |
| replicas: 1 | |
| maxReplicas: 1 | |
| input: | |
| topics: | |
| - persistent://public/default/random-data-topic-b | |
| pulsar: | |
| pulsarConfig: "mesh-test-pulsar" | |
| java: | |
| jar: connectors/pulsar-io-data-generator-2.7.1.nar | |
| jarLocation: "" # use pulsar provided connectors | |
| # following value must be provided if no auto-filling is enabled | |
| autoAck: true | |
| resources: | |
| requests: | |
| cpu: "0.1" | |
| memory: 1G | |
| limits: | |
| cpu: "0.2" | |
| memory: 1.1G | |
| clusterName: pulsar | |
| sources: | |
| - name: data-generator-source | |
| image: freeznet/pulsar-io-data-generator:2.7.1 | |
| className: org.apache.pulsar.io.datagenerator.DataGeneratorSource | |
| sinkType: "org.apache.pulsar.io.datagenerator.Person" | |
| replicas: 1 | |
| maxReplicas: 1 | |
| output: | |
| topic: persistent://public/default/random-data-topic-b | |
| producerConf: | |
| maxPendingMessages: 1000 | |
| maxPendingMessagesAcrossPartitions: 50000 | |
| useThreadLocalProducers: true | |
| sourceConfig: | |
| sleepBetweenMessages: "5000" | |
| pulsar: | |
| pulsarConfig: "mesh-test-pulsar" | |
| java: | |
| jar: connectors/pulsar-io-data-generator-2.7.1.nar | |
| jarLocation: "" # use pulsar provided connectors | |
| # following value must be provided if no auto-filling is enabled | |
| forwardSourceMessageProperty: true | |
| autoAck: true | |
| resources: | |
| requests: | |
| cpu: "0.1" | |
| memory: 1G | |
| limits: | |
| cpu: "0.2" | |
| memory: 1.1G | |
| clusterName: pulsar | |
| --- | |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: mesh-test-pulsar | |
| data: | |
| webServiceURL: http://pulsar-proxy.default.svc.cluster.local:8080 | |
| brokerServiceURL: pulsar://pulsar-proxy.default.svc.cluster.local:6650 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment