-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: blublinsky <[email protected]>
- Loading branch information
1 parent
f508b0d
commit e43ed08
Showing
4 changed files
with
82 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,16 @@ Ensure that you have the following: | |
- [Kind](https://kind.sigs.k8s.io/) tool for running local Kubernetes clusters 0.14.0 or newer must be installed on your machine. | ||
- [Kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl) 1.26 or newer must be installed on your machine. | ||
- [wget](https://www.gnu.org/software/wget/) 1.21 must be installed on your machine. | ||
- [lsof](https://formulae.brew.sh/formula/lsof) must be installed on your machine | ||
- [MinIO Client (mc)](https://min.io/docs/minio/linux/reference/minio-mc.html#quickstart) must be installed on your machine. | ||
- ensure nothing is running on port 8080, which is used by KInd cluster ingress. | ||
|
||
## Preparing Kind cluster for testing | ||
|
||
This is a manual build instruction. As an alternative, you can execute the `make setup` makefile rule in | ||
the project `kind` directory instead. `make setup` performs complete installation, including creation of | ||
the cluster, installing required software (NGNIX, KubeRay and KFP), creating ingresses and secrets and | ||
loading local data to Minio. | ||
This is a manual build instruction. As an alternative, you can execute the `make setup` makefile rule in | ||
the project `kind` directory instead. `make setup` performs complete installation, including validation that port | ||
8080 is available, creation of the cluster, installing required software (NGNIX, KubeRay and KFP), creating | ||
ingresses and secrets and loading local data to Minio. | ||
|
||
|
||
### Create cluster | ||
|
@@ -25,10 +26,10 @@ Run the following command to create the cluster: | |
|
||
```shell | ||
cd /tmp | ||
git clone [email protected]:IBM/data-prep-lab.git | ||
cd data-prep-lab | ||
git clone git@github.ibm.com:ai-models-data/fm-data-engineering.git | ||
cd fm-data-engineering | ||
ROOT_DIR=$PWD/kind/ | ||
kind create cluster --name goofy --config ${ROOT_DIR}/hack/kind-cluster-config.yaml | ||
kind create cluster --name dataprep --config ${ROOT_DIR}/hack/kind-cluster-config.yaml | ||
``` | ||
|
||
Note that by default this will create a kind cluster with 2 worker nodes. If you would like a different | ||
|
@@ -103,7 +104,7 @@ kubectl apply -f $ROOT_DIR/hack/s3_secret.yaml | |
``` | ||
|
||
### Working with a Minio server instead of S3 storage | ||
You can work with a real S3 storage, but for testing you can use the Mino server which is deployed as part of the KFP | ||
You can work with a real S3 storage, but for testing you can use the Mino server which is deployed as part of the KFP | ||
installation. | ||
|
||
#### Copy test data | ||
|
@@ -114,7 +115,7 @@ Populating Minio server with test data can be done using `mc`. Use the following | |
./hack/populate_minio.sh | ||
``` | ||
|
||
This file create an mc alias, create the test bucket and copy local data to Minio. If you need | ||
This file create an mc alias, create the test bucket and copy local data to Minio. If you need | ||
to load additional data, please load it using additional `mc` commands, similar to the ones being | ||
used by `populate_minio.sh` | ||
|
||
|
@@ -126,7 +127,7 @@ as the secret. The secret to use for Minio access is located in `kubeflow` ns wi | |
delete the cluster: | ||
|
||
```shell | ||
kind delete cluster --name goofy | ||
kind delete cluster --name dataprep | ||
``` | ||
|
||
alternatively you can execute | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters