Skip to content

This repository contains a demo application for deploying on Kubernetes.

License

Notifications You must be signed in to change notification settings

lakhinsu/k3s-demo-app

Repository files navigation

About

This repo contains a demo application to be deployed on a Kuberenetes environment.

Run locally

Execute these commands to run the application locally.

  • pip install requirements.txt
  • uvicorn main:app --host <host> --port <port>

Run on Kubernetes

  • Build the docker image and publish it on https://hub.docker.com/ repository.
  • Edit the k8s.deployment.yaml and replace your-image placeholder with your published image.
  • Add docker credentials on your Kubernetes environment (if required). This can be done by following this documentation.
  • Apply Kubernetes configuration by executing following commands.
  • kubectl apply -f k8s.deployment.yaml
  • kubectl apply -f k8s.service.yaml
  • kubectl apply -f k8.ingress.yaml

About

This repository contains a demo application for deploying on Kubernetes.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published