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

📖add minikube info into dev doc #192

Merged
merged 1 commit into from
Jul 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 31 additions & 1 deletion docs/dev-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,15 @@ Please install the latest version of [kind](https://kind.sigs.k8s.io/docs/user/q
### Create `kind` cluster

```console
# For Kind
kind create cluster --name=capn
```

```console
# For Minikube
minikube start
```

### Install `cert-manager`

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).
Expand Down Expand Up @@ -106,10 +112,20 @@ cd cluster-api-provider-nested

```console
PULL_POLICY=Never TAG=dev make docker-build release-manifests
```

```console
# For Kind
kind load docker-image gcr.io/cluster-api-nested-controller-amd64:dev --name=capn
kind load docker-image gcr.io/nested-controlplane-controller-amd64:dev --name=capn
```

```console
# For Minikube
minikube image load gcr.io/nested-controlplane-controller-amd64:dev
minikube image load gcr.io/cluster-api-nested-controller-amd64:dev
```

### Deploy CAPN

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

```console
# Kind
kind load docker-image docker.io/virtualcluster/apiserver-v1.16.2:latest --name=capn
kind load docker-image docker.io/virtualcluster/controller-manager-v1.16.2:latest --name=capn
kind load docker-image docker.io/virtualcluster/etcd-v3.4.0:latest --name=capn
```

```console
# Minikube
minikube image load docker.io/virtualcluster/apiserver-v1.16.2:latest
minikube image load docker.io/virtualcluster/controller-manager-v1.16.2:latest
minikube image load docker.io/virtualcluster/etcd-v3.4.0:latest
```

Get all of the StatefulSet for Tenant Cluster and update the `imagePullPolicy` to `Never`.

```console
Expand Down Expand Up @@ -268,5 +292,11 @@ kubectl --kubeconfig kubeconfig get all -A
### Clean Up

```shell
# For Kind
kind delete cluster --name=capn
```
```

```shell
# For Minikube
Minikube delete
```

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this removes the empty line at EOF; better to leave it.