Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding documentation for minikube #3391

Merged
merged 1 commit into from Mar 9, 2022

Conversation

jainpulkit22
Copy link
Contributor

This PR updates the kubernetes-installer documentation
and adds a minikube to the list, also supporting documentation
to deploy antrea in minikube is added.

Signed-off-by: Pulkit Jain jainpu@vmware.com

@codecov-commenter
Copy link

codecov-commenter commented Mar 3, 2022

Codecov Report

Merging #3391 (b2e85a4) into main (fc2e855) will decrease coverage by 20.74%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #3391       +/-   ##
===========================================
- Coverage   60.68%   39.94%   -20.75%     
===========================================
  Files         268      306       +38     
  Lines       26853    38849    +11996     
===========================================
- Hits        16296    15517      -779     
- Misses       8751    21781    +13030     
+ Partials     1806     1551      -255     
Flag Coverage Δ
integration-tests 35.80% <ø> (?)
kind-e2e-tests ?
unit-tests 42.41% <ø> (+0.08%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/ovs/openflow/default.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/util/runtime/runtime.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/agent/openflow/groups.go 0.00% <0.00%> (-100.00%) ⬇️
pkg/agent/nodeportlocal/k8s/annotations.go 0.00% <0.00%> (-93.55%) ⬇️
pkg/ovs/openflow/logs.go 9.52% <0.00%> (-90.48%) ⬇️
pkg/apis/controlplane/register.go 0.00% <0.00%> (-90.00%) ⬇️
pkg/agent/controller/networkpolicy/reject.go 0.00% <0.00%> (-78.23%) ⬇️
pkg/agent/client.go 0.00% <0.00%> (-77.42%) ⬇️
pkg/flowaggregator/certificate.go 0.00% <0.00%> (-76.58%) ⬇️
...agent/controller/traceflow/traceflow_controller.go 0.00% <0.00%> (-69.86%) ⬇️
... and 289 more

docs/minikube.md Outdated
### Deploy Antrea to your Minikube cluster

```bash
minikube start --cni=antrea/build/yamls/antrea.yml --network-plugin=cni
Copy link
Contributor

Choose a reason for hiding this comment

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

can the --cni parameter take a URL so that we can point it to a released version of Antrea (typically users don't checkout the Antrea repository at all)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, it does not accept any url, I tried that, the cni must be set to path of some local file or directory.

Copy link
Contributor

@antoninbas antoninbas Mar 3, 2022

Choose a reason for hiding this comment

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

Then I suggest something like:

curl -Lo https://github.com/antrea-io/antrea/releases/download/<TAG>/antrea.yml
minikube start --cni=antrea.yml --network-plugin=cni

docs/minikube.md Outdated
<!-- /toc -->

### Install Minikube to your system
Follow these [steps](https://minikube.sigs.k8s.io/docs/start) to install minikube and set its development environemnt.
Copy link
Contributor

Choose a reason for hiding this comment

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

s/environemnt/environment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for pointing it out.

@@ -57,6 +58,10 @@ cluster without deploying a specific network plugin.

To deploy Antrea on Kind, please follow these [steps](kind.md).

### minikube
Copy link
Contributor

Choose a reason for hiding this comment

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

s/minikube/Minikube

@@ -23,6 +23,7 @@ work with that Antrea version.
| - | AKS, K8s v1.18.14 | Azure | Ubuntu 18.04, moby | Standard_DS2_v2 | | Antrea CI |
| - | AKS, K8s v1.19.9 | Azure | Ubuntu 18.04, containerd | Standard_DS2_v2 | | Antrea CI |
| - | Kind v0.9.0, K8s v1.19.1 | N/A | Ubuntu 20.10, containerd://1.4.0 | N/A | | [Requirements for using Antrea on Kind](kind.md) |
| - | minikube v1.25.0 | N/A | Ubuntu 20.04.2 LTS (5.10.76-linuxkit) arm64, docker://20.10.12 | 8GB RAM | | |
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

docs/minikube.md Outdated
- [Check that everything is working](#check-that-everything-is-working)
<!-- /toc -->

### Install Minikube to your system
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe remove to your system

docs/minikube.md Outdated
### Install Minikube to your system
Follow these [steps](https://minikube.sigs.k8s.io/docs/start) to install minikube and set its development environment.

### Deploy Antrea to your Minikube cluster
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think it's necessary to add your, you can remove it.

docs/minikube.md Outdated
minikube start --cni=antrea.yml --network-plugin=cni
```

### Deploy a local build of Antrea to your Minikube cluster (for developers)
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

docs/minikube.md Outdated
kubectl apply -f /antrea/build/yamls/antrea.yml
```

### Check that everything is working
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe just use Verification as the title.

docs/minikube.md Outdated
- [Check that everything is working](#check-that-everything-is-working)
<!-- /toc -->

### Install Minikube to your system
Copy link
Contributor

Choose a reason for hiding this comment

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

I think the sub-title sign in this and following titles are not correct, you should use ## not ###.

docs/minikube.md Outdated
### Deploy Antrea to your Minikube cluster

```bash
# curl is required because --cni flag, does not accept URL as a parameter
Copy link
Contributor

Choose a reason for hiding this comment

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

remove , after flag?

docs/minikube.md Outdated
### Check that everything is working

After a few seconds you should be able to observe the following when running
`kubectl get -n kube-system pods -l app=antrea`:
Copy link
Contributor

Choose a reason for hiding this comment

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

even though this command is working, I would suggest to change it to following one:

kubectl get pods -l app=antrea -n kube-system

docs/minikube.md Outdated
# load the Antrea Docker image in the minikube nodes
minikube image load projects.registry.vmware.com/antrea/antrea-ubuntu:latest
# deploy Antrea
kubectl apply -f /antrea/build/yamls/antrea.yml
Copy link
Contributor

Choose a reason for hiding this comment

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

remove the first /?, this should be a relative path.

@jainpulkit22
Copy link
Contributor Author

/test-e2e

<!-- toc -->
- [Install Minikube](#install-minikube)
- [Deploy Antrea to Minikube cluster](#deploy-antrea-to-minikube-cluster)
- [Deploy a local build of Antrea to Minikube cluster (for developers)](#deploy-a-local-build-of-antrea-to-minikube-cluster-for-developers)
Copy link
Member

Choose a reason for hiding this comment

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

"Deploy Antrea" shouldn't be a subsection of "Install Minikube". Two deploy options could be under one section that is in parallel with "Install Minikube" and "Verification", for example:

  • Install Minikube
  • Deploy Antrea
    • Deploy a released version to Minikube cluster
    • Deploy a local build to Minikube cluster
  • Verification

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks for suggestion, will make the necessary changes

@jainpulkit22 jainpulkit22 force-pushed the minikube-docs branch 2 times, most recently from 20af597 to bb701c9 Compare March 9, 2022 06:40
@jainpulkit22 jainpulkit22 requested a review from tnqn March 9, 2022 09:57
tnqn
tnqn previously approved these changes Mar 9, 2022
Copy link
Member

@tnqn tnqn left a comment

Choose a reason for hiding this comment

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

LGTM

@tnqn
Copy link
Member

tnqn commented Mar 9, 2022

@antoninbas @xliuxu @luolanzone any more comments on this?

docs/minikube.md Outdated
After a few seconds you should be able to observe the following when running
`kubectl get pods -l app=antrea -n kube-system`:

```bash
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: remove bash or use txt

luolanzone
luolanzone previously approved these changes Mar 9, 2022
Copy link
Contributor

@luolanzone luolanzone left a comment

Choose a reason for hiding this comment

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

LGTM, one minor comment.

This commit updates the kubernetes-installer documentation
and adds a minikube to the list, also supporting documentation
to deploy antrea in minikube is added.

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
@tnqn tnqn added this to the Antrea v1.6 release milestone Mar 9, 2022
@tnqn tnqn added the action/release-note Indicates a PR that should be included in release notes. label Mar 9, 2022
@antoninbas
Copy link
Contributor

/skip-all

@antoninbas antoninbas merged commit a51003a into antrea-io:main Mar 9, 2022
GraysonWu pushed a commit to GraysonWu/antrea that referenced this pull request Mar 10, 2022
This commit updates the kubernetes-installer documentation
and adds minikube to the list, and supporting documentation
to deploy antrea in minikube is added.

Signed-off-by: Pulkit Jain <jainpu@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action/release-note Indicates a PR that should be included in release notes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants