apiVersion: cluster.x-k8s.io/v1beta1 kind: MachineDeployment metadata: labels: cluster.x-k8s.io/cluster-name: "eksa-unit-test" name: "eksa-unit-test-eksa-unit-test" namespace: "eksa-system" spec: clusterName: "eksa-unit-test" replicas: 4 selector: matchLabels: {} template: metadata: labels: cluster.x-k8s.io/cluster-name: "eksa-unit-test" spec: bootstrap: configRef: apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 kind: KubeadmConfigTemplate name: "eksa-unit-test" clusterName: "eksa-unit-test" infrastructureRef: apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 kind: NutanixMachineTemplate name: "eksa-unit-test" version: "v1.19.8-eks-1-19-4" --- apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 kind: NutanixMachineTemplate metadata: name: "eksa-unit-test" namespace: "eksa-system" spec: template: spec: providerID: "nutanix://eksa-unit-test-m1" vcpusPerSocket: 1 vcpuSockets: 4 memorySize: 8Gi systemDiskSize: 40Gi image: type: name name: "prism-image" cluster: type: name name: "prism-cluster" subnet: - type: name name: "prism-subnet" project: type: name name: "prism-project" --- apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 kind: KubeadmConfigTemplate metadata: name: "eksa-unit-test" namespace: "eksa-system" spec: template: spec: preKubeadmCommands: - hostnamectl set-hostname "{{ ds.meta_data.hostname }}" joinConfiguration: nodeRegistration: kubeletExtraArgs: # We have to pin the cgroupDriver to cgroupfs as kubeadm >=1.21 defaults to systemd # kind will implement systemd support in: https://github.com/kubernetes-sigs/kind/issues/1726 #cgroup-driver: cgroupfs eviction-hard: nodefs.available<0%,nodefs.inodesFree<0%,imagefs.available<0% tls-cipher-suites: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 name: '{{ ds.meta_data.hostname }}' users: - name: "mySshUsername" lockPassword: false sudo: ALL=(ALL) NOPASSWD:ALL sshAuthorizedKeys: - "mySshAuthorizedKey" ---