Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] polardbx cluster always creating and no pods were created #8293

Closed
shuoshadow opened this issue Oct 17, 2024 · 1 comment
Closed

[BUG] polardbx cluster always creating and no pods were created #8293

shuoshadow opened this issue Oct 17, 2024 · 1 comment
Assignees
Labels
kind/bug Something isn't working
Milestone

Comments

@shuoshadow
Copy link

shuoshadow commented Oct 17, 2024

Kubernetes: v1.28.9
KubeBlocks: 0.9.1
kbcli: 0.9.1
apiVersion: apps.kubeblocks.io/v1alpha1
kind: Cluster
metadata:
  name: dev-pxc
  namespace: kb-cloud
spec:
  tolerations:
    - key: "node-type"
      operator: "Equal"
      value: "mid"
      effect: "NoSchedule"
  affinity:
    podAntiAffinity: Preferred
    tenancy: SharedNode
    topologyKeys:
    - kubernetes.io/hostname
    nodeLabels:
      node-type: "mid"
  clusterDefinitionRef: polardbx
  terminationPolicy: Delete
  componentSpecs:
  - name: gms
    componentDefRef: gms
    serviceAccountName: kb-polardbx-cluster
    replicas: 1
    resources:
      limits:
        cpu: '2'
        memory: 8Gi
      requests:
        cpu: '2'
        memory: 8Gi
    volumeClaimTemplates:
    - name: data
      spec:
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 60Gi
        storageClassName: openebs-hostpath
  - name: dn
    componentDefRef: dn
    replicas: 3
    resources:
      limits:
        cpu: '2'
        memory: 8Gi
      requests:
        cpu: '2'
        memory: 8Gi
    volumeClaimTemplates:
    - name: data
      spec:
        accessModes:
        - ReadWriteOnce
        resources:
          requests:
            storage: 200Gi
        storageClassName: openebs-hostpath
  - name: cn
    componentDefRef: cn
    replicas: 2
    resources:
      limits:
        cpu: '2'
        memory: 8Gi
      requests:
        cpu: '2'
        memory: 8Gi
  - name: cdc
    componentDefRef: cdc
    replicas: 2
    resources:
      limits:
        cpu: '2'
        memory: 8Gi
      requests:
        cpu: '2'
        memory: 8Gi

image

@shuoshadow shuoshadow added the kind/bug Something isn't working label Oct 17, 2024
@shanshanying
Copy link
Contributor

shanshanying commented Oct 18, 2024

@shuoshadow
thanks for reporting the issue. I guess you forget the clusterVersionRef api.
you may refer to our exampels:
https://github.com/apecloud/kubeblocks-addons/blob/release-0.9/examples/polardbx/cluster.yaml#L10

BTW, if you are working with KubeBlocks 0.9.x, please refer to our examples under Release 0.9.

@github-actions github-actions bot added this to the Release 0.9.2 milestone Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants