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

Updates README #9

Merged
merged 1 commit into from
Feb 24, 2024
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions flyte-resources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
404: Not Found
32 changes: 18 additions & 14 deletions kcdmx2024/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@ This is the logical architecture you'll be deploying and using:

## Pre-requisites

1. Docker Desktop
2. kubectl
3. minikube
4. python 3.9+
1. [Docker Desktop](https://www.docker.com/products/docker-desktop/)
2. [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl)
3. [minikube](https://minikube.sigs.k8s.io/docs/start/)
4. python 3.9+ (`python --version`)
5. [Helm](https://helm.sh/docs/intro/install/#through-package-managers)
6. [flytectl](https://docs.flyte.org/projects/flytectl/en/latest/#installation)
7. flytekit - Flyte's Python SDK (`pip install flytekit`)

## Preparing a Kubernetes environment

Expand All @@ -18,7 +21,6 @@ This is the logical architecture you'll be deploying and using:
```bash
minikube start --driver=docker
```

2. Download the manifest for the Flyte dependencies:
```bash
curl -sl https://raw.githubusercontent.com/flyte-conference-talks/kcdmexico-2024/manifests/flyte-resources.yaml > flyte-resources.yaml
Expand All @@ -27,34 +29,36 @@ curl -sl https://raw.githubusercontent.com/flyte-conference-talks/kcdmexico-2024
```bash
kubectl create -f flyte-resources.yaml
```
3. Install Flyte:
4. Add the Helm repo:
```bash
helm repo add flyteorg https://flyteorg.github.io/flyte
```
5. Install Flyte:
```bash
helm install flyte-binary flyteorg/flyte-binary --values values.yaml -n flyte
```
4. In three separate Terminal windows, start port-forwarding sessions to the following components:
6. In three separate Terminal windows, start port-forwarding sessions to the following components:

Web console
```
kubectl -n flyte port-forward service/flyte-binary-http 8088:8088
```

API endpoint
```
kubectl -n flyte port-forward service/flyte-binary-grpc 8089:8089
```
minio (blob storage)
```
kubectl -n flyte port-forward service/minio 9000:9000
```

5. Edit the `$HOME/.flyte/config.yaml` file to reflect the following:
```
7. Edit the `$HOME/.flyte/config.yaml` file to reflect the following:
```yaml
admin:
endpoint: localhost:8089
insecure: true
authType: Pkce
```
6. Add and entry to your local DNS file so your `pyflyte` client is able to resolve the `minio` service name:
8. Add and entry to your local DNS file so your `pyflyte` client is able to resolve the `minio` service name:
```bash
sudo vi /etc hosts

Expand All @@ -66,13 +70,13 @@ sudo vi /etc hosts
127.0.0.1 minio.flyte.svc.cluster.local
```

7. Download this demo workflow or simply start developing your own:
9. Download this demo workflow or simply start developing your own:

``` bash
curl -sl https://raw.githubusercontent.com/davidmirror-ops/flyte-the-hard-way/main/docs/on-premises/microk8s/demo.py > demo.py
```

8. Submit the workflow:
10. Submit the workflow:
``` bash
pyflyte run --remote demo.py wf
```
Expand Down
Loading