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" --- apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 kind: KubeadmConfigTemplate metadata: name: "eksa-unit-test" namespace: "eksa-system" spec: template: spec: preKubeadmCommands: - sudo systemctl daemon-reload - sudo systemctl restart containerd - 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" files: - content: | [Service] Environment="HTTP_PROXY=proxy.nutanix.com:8888" Environment="HTTPS_PROXY=proxy.nutanix.com:8888" Environment="NO_PROXY=192.168.0.0/16,10.96.0.0/12,noproxy1.nutanix.com,noproxy2.nutanix.com,noproxy3.nutanix.com,localhost,127.0.0.1,.svc,prism.nutanix.com,test-ip" owner: root:root path: /etc/systemd/system/containerd.service.d/http-proxy.conf ---