Skip to content

Commit

Permalink
code review changes - add tips about minikube
Browse files Browse the repository at this point in the history
Signed-off-by: shirady <[email protected]>
  • Loading branch information
shirady committed Jul 31, 2023
1 parent 493ec20 commit f697f10
Showing 1 changed file with 22 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Deploy NooBaa on Local Machine
# Deploy NooBaa on Minikube / Rancher Desktop
There are many ways to deploy NooBaa on k8s on you local machine, this guide refers to 2 options (the difference is in the configurations):
1. Docker Desktop + Minikube
2. Rancher Desktop
Expand All @@ -21,10 +21,18 @@ minikube start
```
b. Set configurations:
```bash
minikube config set memory 8000
minikube config set cpus 5
minikube config set memory 8000
minikube config set cpus 5
```
##### Tips for minikube users:
c. Optional - You can also use minikube dashboard:
```bash
minikube dashboard --url
```
d. Optional - before starting you cluster (not talking about first time installation) it is better to run this command so the user won't get the previous cluster (sometimes minikube won't get deleted even after the system restart):
```bash
minikube delete --all
```

### Rancher Desktop
Inside the application -> preferences -> Virtual Machine (left tab) -> Memory: 10 GB, CPU: 6

Expand All @@ -44,6 +52,8 @@ In each step, it is mentioned what tab you should use.
```bash
eval $(minikube docker-env)
```
Note: You can build on your local machine (it would be faster, since n minikube it would build the image from scratch) - but minikube doesn't have access to it, so you will need to push the image to a remote repository Docker Hub or Quay (and then pull it).

## 3) Before Building The Images (Noobaa-Operator Tab)
Change the working directory to the local repository (in this example the local repository is inside `SourceCode` directory).
```bash
Expand Down Expand Up @@ -89,10 +99,17 @@ Change the tag name `noobaa:latest noobaa-core:<tag-name>`, for example:
```bash
docker tag noobaa:latest noobaa-core:my-deploy
```

Tip: You can use this option instead of running the two commands:
```bash
make noobaa NOOBAA_TAG=noobaa-core:<tag-name>
```
### 7) Push Core Images (Noobaa-Core Tab) - Optional
Please refer to [Push Operator Images (Noobaa-Operator Tab) - Optional](#5-push-operator-images-noobaa-operator-tab---optional), the only change is instead of `noobaa-operator` use `noobaa-core`.

Tip: You can use this option instead of running the two commands (using Quay, your user in Quay):
```bash
make noobaa NOOBAA_TAG=quay.io/<your-user>/noobaa-core:<tag-name>
```
### 8) Deploy Noobaa (Noobaa-Operator Tab)
Deploy noobaa and you the image you created and tagged:
```bash
Expand Down

0 comments on commit f697f10

Please sign in to comment.