sigs.k8s.io/cluster-api-provider-aws@v1.5.5/test/e2e/data/infrastructure-aws/e2e_test_templates/cluster-template-peered-remote.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 network: 27 securityGroupOverrides: 28 apiserver-lb: ${SG_ID} 29 bastion: ${SG_ID} 30 controlplane: ${SG_ID} 31 lb: ${SG_ID} 32 node: ${SG_ID} 33 subnets: 34 - id: ${MGMT_PUBLIC_SUBNET_ID} 35 - id: ${MGMT_PRIVATE_SUBNET_ID} 36 vpc: 37 availabilityZoneUsageLimit: 1 38 id: ${MGMT_VPC_ID} 39 region: ${AWS_REGION} 40 sshKeyName: ${AWS_SSH_KEY_NAME} 41 --- 42 apiVersion: controlplane.cluster.x-k8s.io/v1beta1 43 kind: KubeadmControlPlane 44 metadata: 45 name: ${CLUSTER_NAME}-control-plane 46 spec: 47 kubeadmConfigSpec: 48 clusterConfiguration: 49 apiServer: 50 extraArgs: 51 cloud-provider: aws 52 controllerManager: 53 extraArgs: 54 cloud-provider: aws 55 initConfiguration: 56 nodeRegistration: 57 kubeletExtraArgs: 58 cloud-provider: aws 59 name: '{{ ds.meta_data.local_hostname }}' 60 joinConfiguration: 61 nodeRegistration: 62 kubeletExtraArgs: 63 cloud-provider: aws 64 name: '{{ ds.meta_data.local_hostname }}' 65 preKubeadmCommands: 66 - mkdir -p /opt/cluster-api 67 - ctr -n k8s.io images pull "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}" 68 - ctr -n k8s.io images tag "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}" gcr.io/k8s-staging-cluster-api/capa-manager:e2e 69 machineTemplate: 70 infrastructureRef: 71 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 72 kind: AWSMachineTemplate 73 name: ${CLUSTER_NAME}-control-plane 74 replicas: ${CONTROL_PLANE_MACHINE_COUNT} 75 version: ${KUBERNETES_VERSION} 76 --- 77 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 78 kind: AWSMachineTemplate 79 metadata: 80 name: ${CLUSTER_NAME}-control-plane 81 spec: 82 template: 83 spec: 84 additionalSecurityGroups: 85 - filters: 86 - name: vpc-id 87 values: 88 - ${MGMT_VPC_ID} 89 - name: group-name 90 values: 91 - ${MGMT_CLUSTER_NAME}-all 92 failureDomain: us-west-2a 93 iamInstanceProfile: control-plane.cluster-api-provider-aws.sigs.k8s.io 94 instanceType: ${AWS_CONTROL_PLANE_MACHINE_TYPE} 95 sshKeyName: ${AWS_SSH_KEY_NAME} 96 --- 97 apiVersion: cluster.x-k8s.io/v1beta1 98 kind: MachineDeployment 99 metadata: 100 name: ${CLUSTER_NAME}-md-0 101 spec: 102 clusterName: ${CLUSTER_NAME} 103 replicas: ${WORKER_MACHINE_COUNT} 104 selector: 105 matchLabels: null 106 template: 107 spec: 108 bootstrap: 109 configRef: 110 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 111 kind: KubeadmConfigTemplate 112 name: ${CLUSTER_NAME}-md-0 113 clusterName: ${CLUSTER_NAME} 114 infrastructureRef: 115 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 116 kind: AWSMachineTemplate 117 name: ${CLUSTER_NAME}-md-0 118 version: ${KUBERNETES_VERSION} 119 --- 120 apiVersion: infrastructure.cluster.x-k8s.io/v1beta1 121 kind: AWSMachineTemplate 122 metadata: 123 name: ${CLUSTER_NAME}-md-0 124 spec: 125 template: 126 spec: 127 failureDomain: us-west-2a 128 iamInstanceProfile: nodes.cluster-api-provider-aws.sigs.k8s.io 129 instanceType: ${AWS_NODE_MACHINE_TYPE} 130 sshKeyName: ${AWS_SSH_KEY_NAME} 131 --- 132 apiVersion: bootstrap.cluster.x-k8s.io/v1beta1 133 kind: KubeadmConfigTemplate 134 metadata: 135 name: ${CLUSTER_NAME}-md-0 136 spec: 137 template: 138 spec: 139 joinConfiguration: 140 nodeRegistration: 141 kubeletExtraArgs: 142 cloud-provider: aws 143 name: '{{ ds.meta_data.local_hostname }}' 144 preKubeadmCommands: 145 - ctr -n k8s.io images pull "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}" 146 - ctr -n k8s.io images tag "${CAPI_IMAGES_REGISTRY}:${E2E_IMAGE_TAG}" gcr.io/k8s-staging-cluster-api/capa-manager:e2e 147 --- 148 apiVersion: v1 149 data: ${CNI_RESOURCES} 150 kind: ConfigMap 151 metadata: 152 name: cni-${CLUSTER_NAME}-crs-0 153 --- 154 apiVersion: addons.cluster.x-k8s.io/v1beta1 155 kind: ClusterResourceSet 156 metadata: 157 name: ${CLUSTER_NAME}-crs-0 158 spec: 159 clusterSelector: 160 matchLabels: 161 cni: ${CLUSTER_NAME}-crs-0 162 resources: 163 - kind: ConfigMap 164 name: cni-${CLUSTER_NAME}-crs-0 165 strategy: ApplyOnce