Configure the nodesets of GMS and storage node under .spec.topology.rules.components in the yaml file, as shown below:

apiVersion: polardbx.aliyun.com/v1
kind: PolarDBXCluster
metadata:
  name: pxc-demo
spec:
  topology:
    rules:
      components:
        gms:
          ## Simply configure the nodeSets.
          nodeSets:
          - name: cands
            role: Candidate
            replicas: 1
        dn:
          ## Simply configure the nodeSets.
          nodeSets:
          - name: cands
            role: Candidate
            replicas: 1
    nodes:
      gms:
        template:
          resources:
            limits:
              cpu: 2
              memory: 4Gi
      cn:
        replicas: 1
        template:
          resources:
            requests:
              cpu: 1
              memory: 4Gi
            limits:
              cpu: 2
              memory: 4Gi
      dn:
        replicas: 1
        template:
          resources:
            limits:
              cpu: 2
              memory: 4Gi
      cdc:
        replicas: 1
        template:
          resources:
            limits:
              cpu: 2
              memory: 4Gi

results matching ""

    No results matching ""