Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-38566

[Doc]Issues for "Sample YAML for a compute machine set custom resource"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • 4.16
    • None
    • Informational
    • None
    • False
    • Hide

      None

      Show
      None

      Description of problem:

      For https://docs.openshift.com/container-platform/4.16/machine_management/creating-infrastructure-machinesets.html#machineset-yaml-aws_creating-infrastructure-machinesets
      
      Change
                securityGroups:
                  - filters:
                      - name: tag:Name
                        values:
                          - <infrastructure_id>-worker-sg 
                subnet:
                  filters:
                    - name: tag:Name
                      values:
                        - <infrastructure_id>-private-<zone>
      to 
                securityGroups:
                - filters:
                  - name: tag:Name
                    values:
                    - <infrastructure_id>-node
                - filters:
                  - name: tag:Name
                    values:
                    - <infrastructure_id>-lb
                spotMarketOptions: {}
                subnet:
                  filters:
                  - name: tag:Name
                    values:
                    - <infrastructure_id>-subnet-private-<zone>
      
      For https://docs.openshift.com/container-platform/4.16/machine_management/creating-infrastructure-machinesets.html#machineset-yaml-azure_creating-infrastructure-machinesets
      1. add acceleratedNetworking: true
      
      2. remove "machine.openshift.io/cluster-api-machineset: <machineset_name>"
              labels:
                machine.openshift.io/cluster-api-machineset: <machineset_name>
                node-role.kubernetes.io/infra: ""
      
      3. change "subnet: <infrastructure_id>-<role>-subnet" to subnet: "<infrastructure_id>-worker-subnet"
      
      4. resourceID: /resourceGroups/<infrastructure_id>-rg/providers/Microsoft.Compute/galleries/gallery_<infrastructure_id>/images/<infrastructure_id>-gen2/versions/latest "gallery_<infrastructure_id>" is not correct, here use underscores _, not -, for example resourceID: /resourceGroups/yingwang-0815-b2mwd-rg/providers/Microsoft.Compute/galleries/gallery_yingwang_0815_b2mwd/images/yingwang-0815-b2mwd-gen2/versions/latest
      
      5. change 
                tags:
                  - name: <custom_tag_name> 
                    value: <custom_tag_value>
      to 
                tags:
                  <ustom_tag_name>: <custom_tag_value>
      
      
      For https://docs.openshift.com/container-platform/4.16/machine_management/creating-infrastructure-machinesets.html#machineset-yaml-azure-stack-hub_creating-infrastructure-machinesets
      
      1. Change  
              machine.openshift.io/cluster-api-machine-role: <infra> 
              machine.openshift.io/cluster-api-machine-type: <infra>
      to 
              machine.openshift.io/cluster-api-machine-role: infra 
              machine.openshift.io/cluster-api-machine-type: infra
      
      "<infra> node label" change to "infra node label"
      
      as in doc we said "<infra> is the node label to add", but in fact infra node label is added by 
            metadata:
              labels:
                node-role.kubernetes.io/infra: ""
      
      2. add "acceleratedNetworking: true" to providerSpec.value
      
      For https://docs.openshift.com/container-platform/4.16/machine_management/creating-infrastructure-machinesets.html#machineset-yaml-ibm-cloud_creating-infrastructure-machinesets
      
      1. Change   
             machine.openshift.io/cluster-api-machine-role: <infra> 
             machine.openshift.io/cluster-api-machine-type: <infra>
      to 
             machine.openshift.io/cluster-api-machine-role: infra 
             machine.openshift.io/cluster-api-machine-type: infra
      
      2. Change
                userDataSecret:
                    name: <role>-user-data
      to 
                userDataSecret:
                    name:worker-user-data
      
      For https://docs.openshift.com/container-platform/4.16/machine_management/creating-infrastructure-machinesets.html#machineset-yaml-gcp_creating-infrastructure-machinesets
      
      1. Change 
      apiVersion: gcpprovider.openshift.io/v1beta1
      to 
      apiVersion: machine.openshift.io/v1beta1
      
      
      For doc https://docs.openshift.com/container-platform/4.16/machine_management/creating-infrastructure-machinesets.html#machineset-yaml-nutanix_creating-infrastructure-machinesets
      1. remove below part, as these are generated automatically after creating machineset.
        annotations: 
          machine.openshift.io/memoryMb: "16384"
          machine.openshift.io/vCPU: "4"
      
      For doc https://docs.openshift.com/container-platform/4.16/machine_management/creating-infrastructure-machinesets.html#machineset-yaml-vsphere_creating-infrastructure-machinesets
      
      1. Change
      apiVersion: vsphereprovider.openshift.io/v1beta1
      to 
      apiVersion: machine.openshift.io/v1beta1
      
      2. Change resourcepool to resourcePool

              jrouth@redhat.com Jeana Routh
              rhn-support-zhsun Zhaohua Sun
              Zhaohua Sun Zhaohua Sun
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: