Skip to content

This is a complete stack for running Python 3.8 and all the necesary dependencies for Dash Plotly with GUnicorn as HTTP Server with Kubernetes.

Notifications You must be signed in to change notification settings

Inushin/kubernetesDashPlotlyGUnicorn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

☸️ Kubernetes + Python 3.8 + Dash Plotly + GUnicorn 20.1.0 ☸️

repo_logo

If you find this useful, remember about giving a start ⭐ to this repo or share it πŸ”

Description πŸ“‹

docker_facebook_share

This is a complete stack for running Python 3.8 and all the necesary dependencies for Dash Plotly with GUnicorn as HTTP Server with Kubernetes. Like there is no official image, we are going to use a custom Docker Image inushin/dash-plotly

Installation of Kubernetes (with minikube) ⌨

Minikube Installation Illustration

minikube is local Kubernetes, focusing on making it easy to learn and develop for Kubernetes.

  1. You need Docker where you are going to launch this so, if you do not have it... click HERE or go to the end of this .md ^^

  2. Clone this rep.

  3. Install minikube's latest stable version. On minikube's webpage you can select the installation method you prefer. We are going to use x86-64 Linux using Debian package:

curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube_latest_amd64.deb
sudo dpkg -i minikube_latest_amd64.deb
  1. To check that eveything is running correctly in the background, run minikube start and you will see minikube running.

  2. You can use too minikube's dashboard by running minikube dashboard

Kubernete's useful commands πŸ“‘

Kubernete's Commands Illustration

  • Check and specific deployed yaml: kubectl get pod POD1 -o yaml / kubectl get deployments DEPLOYMENT1 -o yaml / kubectl get services SERVICE1 -o yaml

  • Deploy pod/deployment/service from a file/directory: kubectl apply -f DIRPATH/(pod/deployment/service).yaml / kubectl apply -f DIRPATH

  • Destroy deployed pod/deployment/service from a file/directory: kubectl delete -f DIRPATH/(pod/deployment/service).yaml / kubectl delete -f DIRPATH

  • Check pods/deployments/services: kubectl get pods / kubectl get deployments / kubectl get services

  • Check pods/deployments/services of an specific namespace: kubectl get pods --namespace NAMESPACE / kubectl get deployments --namespace NAMESPACE / kubectl get services --namespace NAMESPACE

  • Check pods/deployments/services with more information: kubectl get pod POD1 -o wide / kubectl get deployments DEPLOYMENT1 -o wide / kubectl get services SERVICE1 -o wide

Installing Docker πŸ› 

Docker Composer

Adjust the installation to your OS. Here you have the one for Linux Mint (Ubuntu based)

  1. Download and install Docker: apt install docker

  2. Gives permisions so you can run it everywhere: sudo usermod -aG docker $USER

  3. Starts Docker's service: service docker start

  4. Starts Docker's service each time you run the SO: chkconfig docker on

⭐ Feedback and bugs 🐞

If you find any bug or just want to give your feedback (remember the ⭐ ^^), Feel free to do it. I am, like you, constantly learning and things change so quickly that... no one knows ^^

Version control πŸ“

About

This is a complete stack for running Python 3.8 and all the necesary dependencies for Dash Plotly with GUnicorn as HTTP Server with Kubernetes.

Resources

Stars

Watchers

Forks

Packages

No packages published