Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix broker hostname in function / proxy-ws configuration (TLS enabled) (
#197) * Replace `brokerSts.component` -> `brokerSts.component` (function) * Replace `brokerSts.component` -> `brokerSts.component` (proxy) * pulsar+ssl when using TLS port in function configmap Co-authored-by: Michael Marshall <[email protected]> * Add `useStsBrokersForDiscovery` and document to values Co-authored-by: Michael Marshall <[email protected]> This attempts to achieve: a. fix #196 b. improve the broker hostname in the proxy-ws configuration Note: b. doesn't seem to actually fix anything, but I believe it's a consistent change to make if we intend to use brokerSts, whenever enabling TLS. Both changes have been tested with TLS enabled in the following scenario: 1. Deploy pulsar with tls and functions enabled (values below) 2. create a partitioned topic and subscription 3. generate a source function: ``` bin/pulsar-admin sources create -t data-generator --name data-generator-source --source-config '{"sleepBetweenMessages":"10"}' --destination-topic-name persistent://public/default/test ``` 4. consume messages Values: ``` enableAntiAffinity: no enableTls: yes tls: function: enableTlsWithBroker: true enableHostnameVerification: true cert-manager: enabled: true createCertificates: selfSigned: enabled: true enableTokenAuth: yes autoRecovery: enableProvisionContainer: yes restartOnConfigMapChange: enabled: yes image: zookeeper: repository: datastaxlunastreaming-all tag: 2.7.2_1.1.32 bookie: repository: datastaxlunastreaming-all tag: 2.7.2_1.1.32 bookkeeper: repository: datastaxlunastreaming-all tag: 2.7.2_1.1.32 autorecovery: repository: datastaxlunastreaming-all tag: 2.7.2_1.1.32 broker: repository: datastaxlunastreaming-all tag: 2.7.2_1.1.32 proxy: repository: datastaxlunastreaming-all tag: 2.7.2_1.1.32 functions: repository: datastaxlunastreaming-all tag: 2.7.2_1.1.32 function: repository: datastaxlunastreaming-all tag: 2.7.2_1.1.32 extra: broker: false brokerSts: true function: yes burnell: yes burnellLogCollector: yes pulsarHeartbeat: yes pulsarAdminConsole: yes functionsAsPods: yes default_storage: existingStorageClassName: server-storage volumes: data: #ASF Helm Chart storageClassName: existent-storage-class zookeeper: replicaCount: 3 bookkeeper: replicaCount: 3 broker: component: broker replicaCount: 2 ledger: defaultEnsembleSize: 1 defaultAckQuorum: 1 defaultWriteQuorum: 1 function: replicaCount: 1 functionReplicaCount: 1 runtime: "kubernetes" proxy: disableZookeeperDiscovery: true useStsBrokersForDiscovery: true replicaCount: 2 autoPortAssign: enablePlainTextWithTLS: yes service: type: ClusterIP autoPortAssign: enabled: yes grafanaDashboards: enabled: yes pulsarAdminConsole: replicaCount: 0 service: type: ClusterIP grafana: #ASF Helm Chart service: type: ClusterIP pulsar_manager: service: #ASF Helm Chart type: ClusterIP kube-prometheus-stack: # Luna Streaming Helm Chart enabled: no prometheusOperator: enabled: no grafana: enabled: no service: type: ClusterIP pulsarSQL: service: type: ClusterIP ```
- Loading branch information