sigs.k8s.io/cluster-api-provider-aws@v1.5.5/test/e2e/data/infrastructure-aws/e2e_test_templates/cluster-template-internal-elb.yaml (about) 1 apiVersion: cluster.x-k8s.io/v1beta1 2 kind: Cluster 3 metadata: 4 labels: 5 cni: ${CLUSTER_NAME}-crs-0 6 name: ${CLUSTER_NAME} 7 spec: 8 clusterNetwork: 9 pods: 10 cidrBlocks: 11 - 192.168.0.0/16 12 controlPlaneRef: 13 apiVersion: controlplane.cluster.x-k8s.io/v1beta1 14 kind: KubeadmControlPlane 15 name: ${CLUSTER_NAME}-control-plane 16 infrastructureRef: 17 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 18 kind: AWSCluster 19 name: ${CLUSTER_NAME} 20 --- 21 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 22 kind: AWSCluster 23 metadata: 24 name: ${CLUSTER_NAME} 25 spec: 26 controlPlaneLoadBalancer: 27 scheme: internal 28 network: 29 subnets: 30 - id: ${WL_PRIVATE_SUBNET_ID} 31 vpc: 32 availabilityZoneUsageLimit: 1 33 id: ${WL_VPC_ID} 34 region: ${AWS_REGION} 35 sshKeyName: ${AWS_SSH_KEY_NAME} 36 --- 37 apiVersion: controlplane.cluster.x-k8s.io/v1beta1 38 kind: KubeadmControlPlane 39 metadata: 40 name: ${CLUSTER_NAME}-control-plane 41 spec: 42 kubeadmConfigSpec: 43 clusterConfiguration: 44 apiServer: 45 extraArgs: 46 cloud-provider: aws 47 controllerManager: 48 extraArgs: 49 cloud-provider: aws 50 initConfiguration: 51 nodeRegistration: 52 kubeletExtraArgs: 53 cloud-provider: aws 54 name: '{{ ds.meta_data.local_hostname }}' 55 joinConfiguration: 56 nodeRegistration: 57 kubeletExtraArgs: 58 cloud-provider: aws 59 name: '{{ ds.meta_data.local_hostname }}' 60 preKubeadmCommands: 61 - mkdir -p /opt/cluster-api 62 - ctr -n k8s.io images pull "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}" 63 - ctr -n k8s.io images tag "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}" gcr.io/k8s-staging-cluster-api/capa-manager:e2e 64 machineTemplate: 65 infrastructureRef: 66 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 67 kind: AWSMachineTemplate 68 name: ${CLUSTER_NAME}-control-plane 69 replicas: ${CONTROL_PLANE_MACHINE_COUNT} 70 version: ${KUBERNETES_VERSION} 71 --- 72 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 73 kind: AWSMachineTemplate 74 metadata: 75 name: ${CLUSTER_NAME}-control-plane 76 spec: 77 template: 78 spec: 79 failureDomain: us-west-2a 80 iamInstanceProfile: control-plane.cluster-api-provider-aws.sigs.k8s.io 81 instanceType: ${AWS_CONTROL_PLANE_MACHINE_TYPE} 82 sshKeyName: ${AWS_SSH_KEY_NAME} 83 --- 84 apiVersion: cluster.x-k8s.io/v1beta1 85 kind: MachineDeployment 86 metadata: 87 name: ${CLUSTER_NAME}-md-0 88 spec: 89 clusterName: ${CLUSTER_NAME} 90 replicas: ${WORKER_MACHINE_COUNT} 91 selector: 92 matchLabels: null 93 template: 94 spec: 95 bootstrap: 96 configRef: 97 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 98 kind: KubeadmConfigTemplate 99 name: ${CLUSTER_NAME}-md-0 100 clusterName: ${CLUSTER_NAME} 101 infrastructureRef: 102 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 103 kind: AWSMachineTemplate 104 name: ${CLUSTER_NAME}-md-0 105 version: ${KUBERNETES_VERSION} 106 --- 107 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 108 kind: AWSMachineTemplate 109 metadata: 110 name: ${CLUSTER_NAME}-md-0 111 spec: 112 template: 113 spec: 114 failureDomain: us-west-2a 115 iamInstanceProfile: nodes.cluster-api-provider-aws.sigs.k8s.io 116 instanceType: ${AWS_NODE_MACHINE_TYPE} 117 sshKeyName: ${AWS_SSH_KEY_NAME} 118 --- 119 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 120 kind: KubeadmConfigTemplate 121 metadata: 122 name: ${CLUSTER_NAME}-md-0 123 spec: 124 template: 125 spec: 126 joinConfiguration: 127 nodeRegistration: 128 kubeletExtraArgs: 129 cloud-provider: aws 130 name: '{{ ds.meta_data.local_hostname }}' 131 preKubeadmCommands: 132 - ctr -n k8s.io images pull "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}" 133 - ctr -n k8s.io images tag "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}" gcr.io/k8s-staging-cluster-api/capa-manager:e2e 134 --- 135 apiVersion: v1 136 data: ${CNI_RESOURCES} 137 kind: ConfigMap 138 metadata: 139 name: cni-${CLUSTER_NAME}-crs-0 140 --- 141 apiVersion: addons.cluster.x-k8s.io/v1beta1 142 kind: ClusterResourceSet 143 metadata: 144 name: ${CLUSTER_NAME}-crs-0 145 spec: 146 clusterSelector: 147 matchLabels: 148 cni: ${CLUSTER_NAME}-crs-0 149 resources: 150 - kind: ConfigMap 151 name: cni-${CLUSTER_NAME}-crs-0 152 strategy: ApplyOnce