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
    ------------------------------



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

    Posted Aug 13, 2024 07:08 AM

    Hello @Corey Dinkens,

    Sorry for the late reply, I hadn't seen your message.

    Yes i resolved my issue : 

    fullName:
      managementClusterNametanzu-lab
      nametesttmccli02
      provisionerNameservice
    meta:
      descriptionI am a cluster
      labels:
        envlab
    spec:
      clusterGroupNamelab-tanzu
      proxyNameproxy
      tmcManagedtrue
      topology:
        clusterClasstanzukubernetescluster
        controlPlane:
          metadata: {}
          osImage:
            archamd64
            namephoton
            version"3"
          replicas1
        network:
          pods:
            cidrBlocks:
            - 192.20.0.0/16
          services:
            cidrBlocks:
            - 10.96.0.0/16 
        nodePools:
        - info:
            descriptionI am a nodepool
            namenp-0
          spec:
            classnode-pool
            metadata: {}
            osImage:
              archamd64
              namephoton
              version"3"
            overrides:
            - namevmClass
              valuebest-effort-small
            - namestorageClass
              valuetanzu
            - namenodePoolVolumes
              value:
              - capacity:
                  storage20G
                mountPath/var/lib/containerd
                namecontainerd
                storageClasstanzu
            replicas1
        variables:
           - name: controlPlaneVolumes
             value
             - capacity:
              storage: 20G
            mountPath: /var/lib/tap
            name: tap
            storageClass: tanzu
        - namenodePoolVolumes
          value:
          - capacity:
              storage"20"
            mountPath/var/lib/containerd
            namecontainerd
        - namentp
          valuentp
        - nameproxy
          value:
            httpProxy""
            httpsProxy""
        - namestorageClass
          valuetanzu
        - namevmClass
          valuebest-effort-small
        versionv1.26.5+vmware.2-fips.1-tkg.1






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

    Posted Aug 13, 2024 09:38 AM

    Hello @Corey Dinkens

    sorry for the late reply, I hadn't seen your message.

    Yes i resolverd my issue : 

    fullName:
      managementClusterNametanzu-lab
      nametesttmccli02
      provisionerNameservice
    meta:
      descriptionI am a cluster
      labels:
        envlab
    spec:
      clusterGroupNamelab-tanzu
      proxyNameproxy
      tmcManagedtrue
      topology:
        clusterClasstanzukubernetescluster
        controlPlane:
          metadata: {}
          osImage:
            archamd64
            namephoton
            version"3"
          replicas1
        network:
          pods:
            cidrBlocks:
            - 192.20.0.0/16
          services:
            cidrBlocks:
            - 10.96.0.0/16
        nodePools:
        - info:
            descriptionI am a nodepool
            namenp-0
          spec:
            classnode-pool
            metadata: {}
            osImage:
              archamd64
              namephoton
              version"3"
            overrides:
            - namevmClass
              valuebest-effort-small
            - namestorageClass
              valuetanzu
            - namenodePoolVolumes
              value:
              - capacity:
                  storage20G
                mountPath/var/lib/containerd
                namecontainerd
                storageClasstanzu
            replicas1
        variables:
       - name: controlPlaneVolumes
          value:
          - capacity:
              storage: 20G
            mountPath: /var/lib/tap
            name: tap
            storageClass: tanzu
        - namenodePoolVolumes
          value:
          - capacity:
              storage"20"
            mountPath/var/lib/containerd
            namecontainerd
        - namentp
          valuentp
        - nameproxy
          value:
            httpProxy""
            httpsProxy""
        - namestorageClass
          valuetanzu
        - namevmClass
          valuebest-effort-small
        versionv1.26.5+vmware.2-fips.1-tkg.1