Skip to content

Instantly share code, notes, and snippets.

@benmoss
Created August 5, 2020 21:49
Show Gist options
  • Save benmoss/db4ede41d2b767095aa6ab8b381bcb50 to your computer and use it in GitHub Desktop.
Save benmoss/db4ede41d2b767095aa6ab8b381bcb50 to your computer and use it in GitHub Desktop.
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
kind: KubeadmConfig
metadata:
name: machinepool
namespace: default
spec:
joinConfiguration:
nodeRegistration:
kubeletExtraArgs:
cloud-provider: aws
name: '{{ ds.meta_data.local_hostname }}'
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: AWSMachinePool
metadata:
name: bmo
namespace: default
spec:
minSize: 1
maxSize: 5
availabilityZones:
- us-east-2a
- us-east-2b
- us-east-2c
subnets:
- subnet-035cec88e1df9c20a
- subnet-0c09bc33e7e9b0343
- subnet-02260318a09ab6f47
awsLaunchTemplate:
instanceType: "t2.medium"
sshKeyName: "default"
iamInstanceProfile: "nodes.cluster-api-provider-aws.sigs.k8s.io"
rootVolume:
size: 11
---
apiVersion: exp.cluster.x-k8s.io/v1alpha3
kind: MachinePool
metadata:
name: bmo
namespace: default
spec:
clusterName: bmo
replicas: 1
template:
spec:
clusterName: bmo
bootstrap:
configRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
kind: KubeadmConfig
name: machinepool
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: AWSMachinePool
name: bmo
version: v1.17.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment