Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Commit d14245e

Browse files
authored
Merge pull request #192 from jichenjc/update_dev_doc
📖add minikube info into dev doc
2 parents 058f132 + 03454b8 commit d14245e

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

docs/dev-quickstart.md

+31-1
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,15 @@ Please install the latest version of [kind](https://kind.sigs.k8s.io/docs/user/q
3030
### Create `kind` cluster
3131

3232
```console
33+
# For Kind
3334
kind create cluster --name=capn
3435
```
3536

37+
```console
38+
# For Minikube
39+
minikube start
40+
```
41+
3642
### Install `cert-manager`
3743

3844
Cert Manager is a soft dependency for the Cluster API components to enable mutating and validating webhooks to be auto deployed. For more detailed instructions go [Cert Manager Installion](https://cert-manager.io/docs/installation/kubernetes/#installing-with-regular-manifests).
@@ -106,10 +112,20 @@ cd cluster-api-provider-nested
106112

107113
```console
108114
PULL_POLICY=Never TAG=dev make docker-build release-manifests
115+
```
116+
117+
```console
118+
# For Kind
109119
kind load docker-image gcr.io/cluster-api-nested-controller-amd64:dev --name=capn
110120
kind load docker-image gcr.io/nested-controlplane-controller-amd64:dev --name=capn
111121
```
112122

123+
```console
124+
# For Minikube
125+
minikube image load gcr.io/nested-controlplane-controller-amd64:dev
126+
minikube image load gcr.io/cluster-api-nested-controller-amd64:dev
127+
```
128+
113129
### Deploy CAPN
114130

115131
Next, we will deploy the CAPN related CRDs and controllers.
@@ -209,11 +225,19 @@ Events:
209225
Please follow the following guidnace to workaround:
210226

211227
```console
228+
# Kind
212229
kind load docker-image docker.io/virtualcluster/apiserver-v1.16.2:latest --name=capn
213230
kind load docker-image docker.io/virtualcluster/controller-manager-v1.16.2:latest --name=capn
214231
kind load docker-image docker.io/virtualcluster/etcd-v3.4.0:latest --name=capn
215232
```
216233

234+
```console
235+
# Minikube
236+
minikube image load docker.io/virtualcluster/apiserver-v1.16.2:latest
237+
minikube image load docker.io/virtualcluster/controller-manager-v1.16.2:latest
238+
minikube image load docker.io/virtualcluster/etcd-v3.4.0:latest
239+
```
240+
217241
Get all of the StatefulSet for Tenant Cluster and update the `imagePullPolicy` to `Never`.
218242

219243
```console
@@ -268,5 +292,11 @@ kubectl --kubeconfig kubeconfig get all -A
268292
### Clean Up
269293

270294
```shell
295+
# For Kind
271296
kind delete cluster --name=capn
272-
```
297+
```
298+
299+
```shell
300+
# For Minikube
301+
Minikube delete
302+
```

0 commit comments

Comments
 (0)