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

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

XMLWordPrintable

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

      None

      Show
      None

      Description of problem:

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

              ocp-docs-bot OCP DocsBot
              rhn-support-zhsun Zhaohua Sun
              Zhaohua Sun Zhaohua Sun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: