Skip to content

Instantly share code, notes, and snippets.

@ncdc
Created January 31, 2020 21:43
Show Gist options
  • Save ncdc/b9ded4f341d718cdf966281916f13979 to your computer and use it in GitHub Desktop.
Save ncdc/b9ded4f341d718cdf966281916f13979 to your computer and use it in GitHub Desktop.
cluster api v1alpha3 capa test
apiVersion: cluster.x-k8s.io/v1alpha3
kind: Cluster
metadata:
name: test1
spec:
clusterNetwork:
pods:
cidrBlocks: ["192.168.0.0/16"]
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: AWSCluster
name: test1
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: AWSCluster
metadata:
name: test1
spec:
region: us-east-1
sshKeyName: default
---
apiVersion: cluster.x-k8s.io/v1alpha3
kind: Machine
metadata:
name: cp-0
labels:
cluster.x-k8s.io/control-plane: ""
spec:
clusterName: test1
version: v1.16.2
bootstrap:
configRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
kind: KubeadmConfig
name: cp-0
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: AWSMachine
name: cp-0
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
kind: AWSMachine
metadata:
name: cp-0
spec:
instanceType: m5.xlarge
iamInstanceProfile: "control-plane.cluster-api-provider-aws.sigs.k8s.io"
---
apiVersion: bootstrap.cluster.x-k8s.io/v1alpha3
kind: KubeadmConfig
metadata:
name: cp-0
spec:
initConfiguration:
nodeRegistration:
name: '{{ ds.meta_data.hostname }}'
kubeletExtraArgs:
cloud-provider: aws
clusterConfiguration:
apiServer:
extraArgs:
cloud-provider: aws
controllerManager:
extraArgs:
cloud-provider: aws
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment