Tanzu

 View Only
  • 1.  Tanzu with vSphere 8 : deploy cluster from tmc with yaml

    Posted Mar 12, 2024 09:54 AM

    Hello,

    I try to deploy a cluster from tmc with yaml in adding a volume on control plan but there is error when i apply script  :

    tanzu mission-control cluster create -f test.yaml

    mehdif38_1-1710237114221.png

    Below, i added red text to add volume on control plan.

    if i delete this, the script is success

    fullName:
      managementClusterName: tanzu-lab
      name: testtmccli02
      provisionerName: service
    meta:
      description: I am a cluster
      labels:
        env: lab
    spec:
      clusterGroupName: lab-tanzu
      proxyName: proxy
      tmcManaged: true
      topology:
        clusterClass: tanzukubernetescluster
        controlPlane:
          metadata: {}
          osImage:
            arch: amd64
            name: photon
            version: "3"
          replicas: 1
        network:
          pods:
            cidrBlocks:
            - 192.20.0.0/16
          services:
            cidrBlocks:
            - 10.96.0.0/16
          spec:
            overrides:
           - name: vmclass
             value: best-effort-medium
           - name: storageClass
             value: tanzu
           - name: controlPlaneVolumes
             value:
           - capacity:
               storage: 120G
             mountPath: /var/lib/tap
             name: tap
             storageClass: tanzu
        nodePools:
        - info:
            description: I am a nodepool
            name: np-0
          spec:
            class: node-pool
            metadata: {}
            osImage:
              arch: amd64
              name: photon
              version: "3"
            overrides:
            - name: vmClass
              value: best-effort-small
            - name: storageClass
              value: tanzu
            - name: nodePoolVolumes
              value:
              - capacity:
                  storage: 20G
                mountPath: /var/lib/containerd
                name: containerd
                storageClass: tanzu
            replicas: 1
        variables:
        - name: nodePoolVolumes
          value:
          - capacity:
              storage: "20"
            mountPath: /var/lib/containerd
            name: containerd
        - name: ntp
          value: ntp
        - name: proxy
          value:
            httpProxy: ""
            httpsProxy: ""
        - name: storageClass
          value: tanzu
        - name: vmClass
          value: best-effort-small
        version: v1.26.5+vmware.2-fips.1-tkg.1

     

    someone can help me to resolve this issue ?

    i can give more information if needed

    Thank you



  • 2.  RE: Tanzu with vSphere 8 : deploy cluster from tmc with yaml

    Broadcom Employee
    Posted May 23, 2024 06:06 PM

    Hello @mehdif38, were you able to resolve your issue?

    Regards,



    ------------------------------
    Corey Dinkens
    Product Marketing Engineer | VMware Tanzu Marketing

    corey.dinkens@broadcom.com
    ------------------------------