Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eksctl-anywhere cluster config generation with parameters for bare metal and vSphere #7983

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Apr 16, 2024

  1. Improve eksctl-anywhere cluster config generation with parameters for…

    … bare metal and vSphere
    
    Sample command for bare metal is:
        eksctl anywhere generate clusterconfig <cluster name> \
            -p tinkerbell \
            -m params_tinkerbell.yaml
    
    Sample params_tinkerbell.yaml has content:
    """
    managementClusterName: <management cluster name>
    podsCidrBlocks:
      - 192.168.64.0/18
    servicesCidrBlocks:
      - 10.96.0.0/12
    kubernetesVersion: 1.26
    cpCount: 1
    workerCount: 2
    cpEndpointHost: <control plane endpoint host ip>
    tinkerbellIP: <tinkerbellIP>
    adminIP: <admin machine ip>
    osFamily: ubuntu
    osImageURL: <osImageURL of K8s 1.26>
    hardwareCSV: <hardware CSV file>
    sshAuthorizedKeyFile: <sshKey.pub file>
    tinkerbellTemplateConfigTemplateFile: tinkerbellTemplateConfigTemplateUbuntu.yaml
    """
    
    managementClusterName is optional, the default value is <cluster name>
    tinkerbellTemplateConfigTemplateFile is for advanced use cases, the default ("") is ok to use
    
    Sample command for vSphere is:
        eksctl anywhere generate clusterconfig <cluster name>
            -p vsphere
            -m params_vsphere.yaml
    
    Sample params_vsphere.yaml has content:
    """
    managementClusterName: <management cluster name>
    podsCidrBlocks:
      - 192.168.192.0/18
    servicesCidrBlocks:
      - 10.96.192.0/18
    cpCount: 2
    etcdCount: 3
    workerCount: 3
    cpEndpointHost: <control plane endpoint host ip>
    kubernetesVersion: 1.28
    datacenter: <vDatacenter>
    insecure: true
    network: <vCenterNetwork>
    server: <serverIP>
    thumbprint: <thumprint>
    datastore: <vDatastore>
    folder: <folder>
    cpDiskGiB: 0
    cpMemoryMiB: 0
    cpNumCPUs: 0
    etcdDiskGiB: 0
    etcdMemoryMiB: 0
    etcdNumCPUs: 0
    workerDiskGiB: 256
    workerMemoryMiB: 65536
    workerNumCPUs: 16
    osFamily: "ubuntu"
    resourcePool: <resource pool>
    template: <template name of OS>
    sshAuthorizedKeyFile: <sshKey.pub>
    """
    
    managementClusterName is optional, the default value is <cluster name>
    ygao-armada committed Apr 16, 2024
    Configuration menu
    Copy the full SHA
    a6b5509 View commit details
    Browse the repository at this point in the history