diff --git a/kubernetes/capi-kustomize/base/controlplane.yaml b/kubernetes/capi-kustomize/base/controlplane.yaml index 2fdde3a..7fcfd79 100644 --- a/kubernetes/capi-kustomize/base/controlplane.yaml +++ b/kubernetes/capi-kustomize/base/controlplane.yaml @@ -23,7 +23,7 @@ kind: AWSMachine metadata: name: capi-quickstart-controlplane-0 spec: - instanceType: t3.large + instanceType: m5.large iamInstanceProfile: "controllers.cluster-api-provider-aws.sigs.k8s.io" sshKeyName: default --- @@ -44,3 +44,95 @@ spec: controllerManager: extraArgs: cloud-provider: aws +--- +apiVersion: cluster.x-k8s.io/v1alpha2 +kind: Machine +metadata: + name: capi-quickstart-controlplane-1 + labels: + cluster.x-k8s.io/control-plane: "true" + cluster.x-k8s.io/cluster-name: "capi-quickstart" +spec: + version: v1.15.3 + bootstrap: + configRef: + apiVersion: bootstrap.cluster.x-k8s.io/v1alpha2 + kind: KubeadmConfig + name: capi-quickstart-controlplane-1 + infrastructureRef: + apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 + kind: AWSMachine + name: capi-quickstart-controlplane-1 +--- +apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 +kind: AWSMachine +metadata: + name: capi-quickstart-controlplane-1 +spec: + instanceType: m5.large + iamInstanceProfile: "controllers.cluster-api-provider-aws.sigs.k8s.io" + sshKeyName: default +--- +apiVersion: bootstrap.cluster.x-k8s.io/v1alpha2 +kind: KubeadmConfig +metadata: + name: capi-quickstart-controlplane-1 +spec: + initConfiguration: + nodeRegistration: + name: '{{ ds.meta_data.hostname }}' + kubeletExtraArgs: + cloud-provider: aws + clusterConfiguration: + apiServer: + extraArgs: + cloud-provider: aws + controllerManager: + extraArgs: + cloud-provider: aws +--- +apiVersion: cluster.x-k8s.io/v1alpha2 +kind: Machine +metadata: + name: capi-quickstart-controlplane-2 + labels: + cluster.x-k8s.io/control-plane: "true" + cluster.x-k8s.io/cluster-name: "capi-quickstart" +spec: + version: v1.15.3 + bootstrap: + configRef: + apiVersion: bootstrap.cluster.x-k8s.io/v1alpha2 + kind: KubeadmConfig + name: capi-quickstart-controlplane-2 + infrastructureRef: + apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 + kind: AWSMachine + name: capi-quickstart-controlplane-2 +--- +apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2 +kind: AWSMachine +metadata: + name: capi-quickstart-controlplane-2 +spec: + instanceType: m5.large + iamInstanceProfile: "controllers.cluster-api-provider-aws.sigs.k8s.io" + sshKeyName: default +--- +apiVersion: bootstrap.cluster.x-k8s.io/v1alpha2 +kind: KubeadmConfig +metadata: + name: capi-quickstart-controlplane-2 +spec: + initConfiguration: + nodeRegistration: + name: '{{ ds.meta_data.hostname }}' + kubeletExtraArgs: + cloud-provider: aws + clusterConfiguration: + apiServer: + extraArgs: + cloud-provider: aws + controllerManager: + extraArgs: + cloud-provider: aws diff --git a/kubernetes/capi-kustomize/base/workers.yaml b/kubernetes/capi-kustomize/base/workers.yaml index cbf5042..782b787 100644 --- a/kubernetes/capi-kustomize/base/workers.yaml +++ b/kubernetes/capi-kustomize/base/workers.yaml @@ -6,7 +6,7 @@ metadata: cluster.x-k8s.io/cluster-name: capi-quickstart nodepool: nodepool-0 spec: - replicas: 1 + replicas: 3 selector: matchLabels: cluster.x-k8s.io/cluster-name: capi-quickstart @@ -35,7 +35,7 @@ metadata: spec: template: spec: - instanceType: t3.large + instanceType: m5.large iamInstanceProfile: "nodes.cluster-api-provider-aws.sigs.k8s.io" sshKeyName: default ---