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
Conversation
Codecov Report
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
|
docs/minikube.md
Outdated
### Deploy Antrea to your Minikube cluster | ||
|
||
```bash | ||
minikube start --cni=antrea/build/yamls/antrea.yml --network-plugin=cni |
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/environemnt/environment
There was a problem hiding this comment.
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.
1716693
to
b2e85a4
Compare
docs/kubernetes-installers.md
Outdated
@@ -57,6 +58,10 @@ cluster without deploying a specific network plugin. | |||
|
|||
To deploy Antrea on Kind, please follow these [steps](kind.md). | |||
|
|||
### minikube |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/minikube/Minikube
docs/kubernetes-installers.md
Outdated
@@ -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 | | | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
b2e85a4
to
9494665
Compare
docs/minikube.md
Outdated
- [Check that everything is working](#check-that-everything-is-working) | ||
<!-- /toc --> | ||
|
||
### Install Minikube to your system |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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`: |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
9494665
to
e5c358c
Compare
/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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
20af597
to
bb701c9
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@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 |
There was a problem hiding this comment.
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
There was a problem hiding this 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>
bb701c9
to
95a76ac
Compare
/skip-all |
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>
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