Skip to content

Commit 6f98f1d

Browse files
authored
Merge pull request #3680 from pydctw/eks-mp-flavor
Add eks machinepool flavor template
2 parents d921776 + 451decb commit 6f98f1d

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
apiVersion: cluster.x-k8s.io/v1beta1
3+
kind: Cluster
4+
metadata:
5+
name: "${CLUSTER_NAME}"
6+
spec:
7+
clusterNetwork:
8+
pods:
9+
cidrBlocks: ["192.168.0.0/16"]
10+
infrastructureRef:
11+
kind: AWSManagedControlPlane
12+
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
13+
name: "${CLUSTER_NAME}-control-plane"
14+
controlPlaneRef:
15+
kind: AWSManagedControlPlane
16+
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
17+
name: "${CLUSTER_NAME}-control-plane"
18+
---
19+
kind: AWSManagedControlPlane
20+
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
21+
metadata:
22+
name: "${CLUSTER_NAME}-control-plane"
23+
spec:
24+
region: "${AWS_REGION}"
25+
sshKeyName: "${AWS_SSH_KEY_NAME}"
26+
version: "${KUBERNETES_VERSION}"
27+
---
28+
apiVersion: cluster.x-k8s.io/v1beta1
29+
kind: MachinePool
30+
metadata:
31+
name: "${CLUSTER_NAME}-mp-0"
32+
spec:
33+
clusterName: "${CLUSTER_NAME}"
34+
replicas: ${WORKER_MACHINE_COUNT}
35+
template:
36+
spec:
37+
bootstrap:
38+
configRef:
39+
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
40+
kind: EKSConfig
41+
name: "${CLUSTER_NAME}-mp-0"
42+
clusterName: "${CLUSTER_NAME}"
43+
infrastructureRef:
44+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
45+
kind: AWSMachinePool
46+
name: "${CLUSTER_NAME}-mp-0"
47+
version: "${KUBERNETES_VERSION}"
48+
---
49+
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
50+
kind: AWSMachinePool
51+
metadata:
52+
name: "${CLUSTER_NAME}-mp-0"
53+
spec:
54+
minSize: 1
55+
maxSize: 10
56+
awsLaunchTemplate:
57+
iamInstanceProfile: nodes.cluster-api-provider-aws.sigs.k8s.io
58+
instanceType: "${AWS_NODE_MACHINE_TYPE}"
59+
sshKeyName: "${AWS_SSH_KEY_NAME}"
60+
---
61+
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
62+
kind: EKSConfig
63+
metadata:
64+
name: "${CLUSTER_NAME}-mp-0"
65+
spec: {}

0 commit comments

Comments
 (0)