From a6b55093b0368fcdbf03db244d7c9f93ae6faf00 Mon Sep 17 00:00:00 2001 From: Yongxiang Gao Date: Sat, 30 Mar 2024 10:34:17 -0700 Subject: [PATCH] Improve eksctl-anywhere cluster config generation with parameters for bare metal and vSphere Sample command for bare metal is: eksctl anywhere generate clusterconfig \ -p tinkerbell \ -m params_tinkerbell.yaml Sample params_tinkerbell.yaml has content: """ managementClusterName: podsCidrBlocks: - 192.168.64.0/18 servicesCidrBlocks: - 10.96.0.0/12 kubernetesVersion: 1.26 cpCount: 1 workerCount: 2 cpEndpointHost: tinkerbellIP: adminIP: osFamily: ubuntu osImageURL: hardwareCSV: sshAuthorizedKeyFile: tinkerbellTemplateConfigTemplateFile: tinkerbellTemplateConfigTemplateUbuntu.yaml """ managementClusterName is optional, the default value is tinkerbellTemplateConfigTemplateFile is for advanced use cases, the default ("") is ok to use Sample command for vSphere is: eksctl anywhere generate clusterconfig -p vsphere -m params_vsphere.yaml Sample params_vsphere.yaml has content: """ managementClusterName: podsCidrBlocks: - 192.168.192.0/18 servicesCidrBlocks: - 10.96.192.0/18 cpCount: 2 etcdCount: 3 workerCount: 3 cpEndpointHost: kubernetesVersion: 1.28 datacenter: insecure: true network: server: thumbprint: datastore: folder: cpDiskGiB: 0 cpMemoryMiB: 0 cpNumCPUs: 0 etcdDiskGiB: 0 etcdMemoryMiB: 0 etcdNumCPUs: 0 workerDiskGiB: 256 workerMemoryMiB: 65536 workerNumCPUs: 16 osFamily: "ubuntu" resourcePool: template: