apecloud / kubeblocks-addons

KubeBlocks add-ons.
Apache License 2.0
32 stars 35 forks source link

[BUG] 0.8.0 Kafka cluster created by 0.8 example yaml without status also ComponentDefinition.apps.kubeblocks.io "kafka-combine" not found #1090

Closed tianyue86 closed 6 days ago

tianyue86 commented 6 days ago

Describe the bug

tianyue@localhost .kube % kbcli version
Kubernetes: v1.30.4+k3s1
KubeBlocks: 0.8.0
kbcli: 0.8.0

To Reproduce Steps to reproduce the behavior:

  1. Install CRD frist kubectl replace -f https://github.com/apecloud/kubeblocks/releases/download/v0.8.0/kubeblocks_crds.yaml

  2. Create kafka cluster by following 0.8 kafka cluster yaml: https://github.com/apecloud/kubeblocks-addons/blob/release-0.8/examples/kafka/cluster.yaml

  3. Check cluster status error: no status NAMESPACE NAME CLUSTER-DEFINITION VERSION TERMINATION-POLICY STATUS AGE default kafka-cluster kafka kafka-3.3.2 Delete 57s

  4. kafka version kafka 0.8.0-alpha.5 community Enabled true

  5. Describe cluster - ComponentDefinition.apps.kubeblocks.io "kafka-combine" not found tianyue@localhost .kube % k describe cluster kafka-cluster Name: kafka-cluster Namespace: default Labels: clusterdefinition.kubeblocks.io/name=kafka clusterversion.kubeblocks.io/name=kafka-3.3.2 Annotations: kubeblocks.io/enabled-pod-ordinal-svc: broker kubeblocks.io/extra-env: {"KB_KAFKA_ENABLE_SASL":"false","KB_KAFKA_BROKER_HEAP":"-XshowSettings:vm -XX:MaxRAMPercentage=100 -Ddepth=64","KB_KAFKA_CONTROLLER_HEAP":... API Version: apps.kubeblocks.io/v1alpha1 Kind: Cluster Metadata: Creation Timestamp: 2024-10-14T03:53:51Z Finalizers: cluster.kubeblocks.io/finalizer Generation: 1 Resource Version: 277036 UID: 02dd69ec-07bd-44c0-8b2f-02a17e1afa60 Spec: Affinity: Pod Anti Affinity: Preferred Tenancy: SharedNode Topology Keys: kubernetes.io/hostname Cluster Definition Ref: kafka Cluster Version Ref: kafka-3.3.2 Component Specs: Component Def: kafka-combine Monitor: false Name: broker No Create PDB: false Replicas: 1 Resources: Limits: Cpu: 0.5 Memory: 0.5Gi Requests: Cpu: 0.5 Memory: 0.5Gi Rsm Transform Policy: ToSts Service Account Name: kb-kafka-cluster Tls: false Volume Claim Templates: Name: data Spec: Access Modes: ReadWriteOnce Resources: Requests: Storage: 20Gi Name: metadata Spec: Access Modes: ReadWriteOnce Resources: Requests: Storage: 20Gi Component Def: kafka-exporter Component Def Ref: kafka-exporter Monitor: false Name: metrics-exp No Create PDB: false Replicas: 1 Resources: Limits: Cpu: 0.5 Memory: 0.5Gi Requests: Cpu: 0.5 Memory: 0.5Gi Rsm Transform Policy: ToSts Services: Component Selector: broker Name: bootstrap Service Name: bootstrap Spec: Ports: Name: kafka-client Port: 9092 Protocol: TCP Target Port: 9092 Type: ClusterIP Termination Policy: Delete Tolerations: Effect: NoSchedule Key: kb-data Operator: Equal Value: true Status: Conditions: Last Transition Time: 2024-10-14T03:53:51Z Message: ComponentDefinition.apps.kubeblocks.io "kafka-combine" not found Reason: PreCheckFailed Status: False Type: ProvisioningStarted Events:

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

caiq1nyu commented 6 days ago

the Kafka example in releas-0.8 is applicable to KB 0.8.2 and later versions. 0.8.0 and 0.8.1 can use Kbcli to create