A web app for image generation using Potato_GAN.
Ensure you have the following tools installed before proceeding:
Start the local Kubernetes cluster using Minikube:
minikube start
Launch the Minikube dashboard to manage the cluster visually:
minikube dashboard
Specify a Kubernetes namespace for the project to isolate your resources:
devspace use namespace notapotato
Deploy the application into the Minikube cluster and start development mode:
devspace dev
This command deploys the app, synchronizes code changes, and automatically reloads the UI.
Note: For easier management, open the Devspace UI to access logs and the running application:
devspace ui
From the Devspace UI, you can:
- View real-time logs
- Exec into pods
- Access the application directly by selecting the UI pod and clicking "Open"
Once the application is running, you can interact with it through your browser. To open the app:
- Go to the Devspace UI.
- Select the UI pod and click Open to launch the web application.
Once the application is running, you can interact directly with the existing api endpoint(s) through your browser.
- Go to the Devspace UI.
- Select the FastAPI pod and click Open to launch the web application.
- Append
/docs
to the url
http://<minikube-ip>:<port>/docs
To stop the development environment and clean up:
-
Stop the Devspace sync by killing the process:
Ctrl + C
-
Stop the Minikube cluster:
minikube stop
Once you're done, clean up resources and images to free up space:
-
Purge the Kubernetes resources created by Devspace:
devspace purge
-
Clean up unused Docker container images:
devspace clean images
After following the quick start instructions, your Not a Potato web app should be running on Minikube. You can access the application and swagger page through the Devspace UI.
For further configuration and troubleshooting, refer to the following documentation:
This guide provides a straightforward setup with easy access to the application and logs through the Devspace UI and Minikube dashboard.