24
24
Cluster API Provider Kubemark (CAPK) is a provider for [ Cluster
25
25
API] [ cluster_api ] (CAPI) that allows users to deploy fake, [ Kubemark] [ kubemark_docs ] -backed machines to their
26
26
clusters. This is useful in a variety of scenarios, such load-testing and
27
- simulation testing.
27
+ simulation testing.
28
28
29
29
It is slightly similar to [ CAPD] [ capd ] , the Docker
30
30
provider, in that it does not deploy actual infrastructure resources (VMs or
@@ -40,10 +40,12 @@ default located at `~/.cluster-api/clusterctl.yaml`.
40
40
``` yaml
41
41
providers :
42
42
- name : " kubemark"
43
- url : " https://github.com/kubernetes-sigs/cluster-api-provider-kubemark/releases/v0.2.2 /infrastructure-components.yaml"
43
+ url : " https://github.com/kubernetes-sigs/cluster-api-provider-kubemark/releases/v0.2.3 /infrastructure-components.yaml"
44
44
type : " InfrastructureProvider"
45
45
` ` `
46
46
47
+ *Note: the ` v0.2.3` release of the kubemark provider has been tested with the `v0.4.\*` versions of Cluster API*
48
+
47
49
For demonstration purposes, we'll use the [CAPD][capd] provider. Other
48
50
providers will also work, but CAPD is supported with a custom
49
51
[template](templates/cluster-template-capd.yaml) that makes deployment super
@@ -59,16 +61,16 @@ Once initialized, you'll need to deploy your workload cluster using the `capd`
59
61
flavor to get a hybrid CAPD/CAPK cluster :
60
62
61
63
` ` ` bash
62
- clusterctl config cluster wow --infrastructure kubemark --flavor capd --kubernetes-version 1.19 .1 --control-plane-machine-count=1 --worker-machine-count=4 | kubectl apply -f-
64
+ clusterctl config cluster wow --infrastructure kubemark --flavor capd --kubernetes-version 1.21 .1 --control-plane-machine-count=1 --worker-machine-count=4 | kubectl apply -f-
63
65
` ` `
64
66
65
67
You should see your cluster come up and quickly become available with 4 Kubemark machines connected to your CAPD control plane.
66
68
67
69
For other providers, you can either create a custom hybrid cluster template, or deploy the control plane and worker machines separately, specifiying the same cluster name :
68
70
69
71
` ` ` bash
70
- clusterctl config cluster wow --infrastructure aws --kubernetes-version 1.19 .1 --control-plane-machine-count=1 | kubectl apply -f-
71
- clusterctl config cluster wow --infrastructure kubemark --kubernetes-version 1.19 .1 --worker-machine-count=4 | kubectl apply -f-
72
+ clusterctl config cluster wow --infrastructure aws --kubernetes-version 1.21 .1 --control-plane-machine-count=1 | kubectl apply -f-
73
+ clusterctl config cluster wow --infrastructure kubemark --kubernetes-version 1.21 .1 --worker-machine-count=4 | kubectl apply -f-
72
74
` ` `
73
75
74
76
# # Using tilt
0 commit comments