apiVersion: apps.kubeblocks.io/v1 kind: Cluster metadata: name: pulsar-kcekhn namespace: default labels: app.kubernetes.io/instance: pulsar-kcekhn annotations: resource.kubeblocks.io/ignore-constraint: "true" kubeblocks.io/enabled-pod-ordinal-svc: broker "kubeblocks.io/extra-env": '{"KB_PULSAR_BROKER_NODEPORT": "true"}' spec: terminationPolicy: DoNotTerminate services: - name: broker-bootstrap serviceName: broker-bootstrap componentSelector: broker spec: type: NodePort ports: - name: pulsar port: 6650 targetPort: 6650 - name: http port: 80 targetPort: 8080 - name: kafka-client port: 9092 targetPort: 9092 - name: zookeeper serviceName: zookeeper componentSelector: zookeeper spec: type: ClusterIP ports: - name: client port: 2181 targetPort: 2181 componentSpecs: - name: proxy componentDef: pulsar-proxy replicas: 3 resources: limits: cpu: 500m memory: 0.5Gi requests: cpu: 500m memory: 0.5Gi - name: bookies-recovery componentDef: pulsar-bookies-recovery replicas: 1 resources: limits: cpu: 500m memory: 0.5Gi requests: cpu: 500m memory: 0.5Gi - name: broker componentDef: pulsar-broker replicas: 1 resources: limits: cpu: 500m memory: 0.5Gi requests: cpu: 500m memory: 0.5Gi - name: bookies componentDef: pulsar-bookkeeper replicas: 4 resources: limits: cpu: 500m memory: 0.5Gi requests: cpu: 500m memory: 0.5Gi volumeClaimTemplates: - name: ledgers spec: accessModes: - ReadWriteOnce resources: requests: storage: 20Gi - name: journal spec: accessModes: - ReadWriteOnce resources: requests: storage: 20Gi - name: zookeeper componentDef: pulsar-zookeeper replicas: 1 resources: limits: cpu: 500m memory: 0.5Gi requests: cpu: 500m memory: 0.5Gi volumeClaimTemplates: - name: data spec: accessModes: - ReadWriteOnce resources: requests: storage: 20Gi