File tree Expand file tree Collapse file tree 11 files changed +8
-12
lines changed
kubeadm-flatcar-vpcless-capl-cluster
kubeadm-full-capl-cluster Expand file tree Collapse file tree 11 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 42
42
clusterctl generate cluster $CLUSTER -n $NAMESPACE \
43
43
--kubernetes-version ${KUBERNETES_VERSION} \
44
44
--infrastructure local-linode:v0.0.0 \
45
- --control-plane-machine-count 1 --worker-machine-count 1 \
46
45
--config ${CLUSTERCTL_CONFIG:=${HOME}/.cluster-api/clusterctl.yaml} > default-cluster.yaml
47
46
check :
48
47
($error == null) : true
Original file line number Diff line number Diff line change 79
79
clusterctl generate cluster $CLUSTER -n $NAMESPACE \
80
80
--kubernetes-version ${KUBERNETES_VERSION} \
81
81
--infrastructure local-linode:v0.0.0 \
82
- --control-plane-machine-count 1 --worker-machine-count 1 \
83
82
--flavor kubeadm-flatcar \
84
83
--config ${CLUSTERCTL_CONFIG:=${HOME}/.cluster-api/clusterctl.yaml} > flatcar-cluster.yaml
85
84
check :
Original file line number Diff line number Diff line change 55
55
clusterctl generate cluster $CLUSTER -n $NAMESPACE \
56
56
--flavor kubeadm-full --kubernetes-version ${KUBERNETES_VERSION} \
57
57
--infrastructure local-linode:v0.0.0 \
58
- --control-plane-machine-count 1 --worker-machine-count 1 \
59
58
--config ${CLUSTERCTL_CONFIG:=${HOME}/.cluster-api/clusterctl.yaml} > kubeadm-full-cluster.yaml
60
59
fi
61
60
check :
Original file line number Diff line number Diff line change 39
39
clusterctl generate cluster $CLUSTER -n $NAMESPACE \
40
40
--flavor rke2 --kubernetes-version ${KUBERNETES_VERSION}+rke2r1 \
41
41
--infrastructure local-linode:v0.0.0 \
42
- --control-plane-machine-count 1 --worker-machine-count 1 \
43
42
--config ${CLUSTERCTL_CONFIG:=${HOME}/.cluster-api/clusterctl.yaml} > rke2-cluster.yaml
44
43
check :
45
44
($error == null) : true
Original file line number Diff line number Diff line change 17
17
valuesTemplate : |
18
18
proxyServerHost: {{ .InfraCluster.spec.controlPlaneEndpoint.host }}
19
19
proxyServerPort: ${KONNECTIVITY_PORT:=8132}
20
- serverCount: ${CONTROL_PLANE_MACHINE_COUNT}
20
+ serverCount: ${CONTROL_PLANE_MACHINE_COUNT:=1 }
21
21
agentReplicas: ${KONNECTIVITY_AGENT_REPLICAS:=3}
Original file line number Diff line number Diff line change 22
22
- name : workerMachineType
23
23
value : ${LINODE_MACHINE_TYPE}
24
24
controlPlane :
25
- replicas : ${CONTROL_PLANE_MACHINE_COUNT}
25
+ replicas : ${CONTROL_PLANE_MACHINE_COUNT:=1 }
26
26
workers :
27
27
machineDeployments :
28
28
- class : default-worker
29
29
name : md-0
30
- replicas : ${WORKER_MACHINE_COUNT}
30
+ replicas : ${WORKER_MACHINE_COUNT:=1 }
Original file line number Diff line number Diff line change 72
72
- sed -i '/swap/d' /etc/fstab
73
73
- swapoff -a
74
74
- hostnamectl set-hostname '{{ ds.meta_data.label }}' && hostname -F /etc/hostname
75
- replicas : ${CONTROL_PLANE_MACHINE_COUNT}
75
+ replicas : ${CONTROL_PLANE_MACHINE_COUNT:=1 }
76
76
version : ${KUBERNETES_VERSION}
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ apiVersion: controlplane.cluster.x-k8s.io/v1beta1
4
4
metadata :
5
5
name : ${CLUSTER_NAME}-control-plane
6
6
spec :
7
- replicas : ${CONTROL_PLANE_MACHINE_COUNT}
7
+ replicas : ${CONTROL_PLANE_MACHINE_COUNT:=1 }
8
8
machineTemplate :
9
9
infrastructureRef :
10
10
kind : LinodeMachineTemplate
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ kind: KubeadmControlPlane
4
4
metadata :
5
5
name : " ${CLUSTER_NAME}-control-plane"
6
6
spec :
7
- replicas : ${CONTROL_PLANE_MACHINE_COUNT}
7
+ replicas : ${CONTROL_PLANE_MACHINE_COUNT:=1 }
8
8
kubeadmConfigSpec :
9
9
joinConfiguration :
10
10
nodeRegistration :
Original file line number Diff line number Diff line change 30
30
- sed -i '/swap/d' /etc/fstab
31
31
- swapoff -a
32
32
- hostnamectl set-hostname '{{ ds.meta_data.label }}' && hostname -F /etc/hostname
33
- replicas : ${CONTROL_PLANE_MACHINE_COUNT}
33
+ replicas : ${CONTROL_PLANE_MACHINE_COUNT:=1 }
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ metadata:
5
5
name : ${CLUSTER_NAME}-md-0
6
6
spec :
7
7
clusterName : ${CLUSTER_NAME}
8
- replicas : ${WORKER_MACHINE_COUNT}
8
+ replicas : ${WORKER_MACHINE_COUNT:=1 }
9
9
selector :
10
10
matchLabels :
11
11
template :
You can’t perform that action at this time.
0 commit comments