diff --git a/src/examples/issue_classification_user_journey.ipynb b/src/examples/issue_classification_user_journey.ipynb index e011c0708..647e74858 100644 --- a/src/examples/issue_classification_user_journey.ipynb +++ b/src/examples/issue_classification_user_journey.ipynb @@ -743,7 +743,7 @@ "- Setup Pulumi\n", "- Check that it is working\n", "\n", - "### Enviroment variables\n", + "### Environment variables\n", "TODO: Describe how to set environment variables \n", "\n", "### FastAPI service\n", @@ -770,8 +770,25 @@ "poetry export --without-hashes --format=requirements.txt > requirements.txt\n", "\n", "### Kubernetes\n", - "\n" + "\n", + "- Install `minikube`, see e.g. [here](https://minikube.sigs.k8s.io/docs/start/)\n", + "- `minikube start`\n", + "- Setup current shell to use minikube's docker daemon: `eval $(minikube -p minikube docker-env)`\n", + "- build docker container as above\n", + " - check if docker image exists:\n", + " - `minikube ssh`\n", + " - `docker image ls`, you should see it listed.\n", + "- Start Kubernetes : `kubectl apply -f classification_deployment.yaml`\n", + "- list all Kubernetes pods: `kubectl get pods -A`\n", + "- forward port: `kubectl port-forward banana-7f84bb87d9-dk4ww 8000:80` Note: you will have to specify the exact pod name (here: `banana-7f84bb87d9-dk4ww`)\n", + "- Check, if you can access `localhost:8000`.\n", + " - check `curl -X POST localhost:8000/classify --json '{\"chunk\": \"long text\", \"labels\": [\"abc\", \"def\"]}'`\n" ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [] } ], "metadata": { diff --git a/src/examples/issue_classification_user_journey/requirements.txt b/src/examples/issue_classification_user_journey/requirements.txt index 6c27f5a4d..69815505d 100644 Binary files a/src/examples/issue_classification_user_journey/requirements.txt and b/src/examples/issue_classification_user_journey/requirements.txt differ