Skip to content

Blog Proposal: From Zero to Kubernets for Python #58

@salmaniqbal

Description

@salmaniqbal

Title: From Zero to Kubernets for Python
Info: This blog post will help you if you have a python application and you would like to deploy it using Kubernets.

1. The application
You have a python application, in this example we will use a Python Hello world web app. This app is run in a website using flask. When accessed via your favourite web browser it prints the text "Hello World" on the page. This can be replaced by any python application.
a. [Give link to Github that includes the source code for this app]

2. Deployment
You dev this app in your local machine and then it is deployed in Test, QA and Prod environment. Sometimes you might run into an issue in other environments where it would fail on deployment

3. Docker
This is where Docker helps, if you can contain your application in an image, you can reliably deploy it on any envirnment.
a. [Brief description of Docker containers and its advantages, perhaps link to other docker resources]
b. [Show and walk through the docker file]
c.
d. Is it worth showing how a container can hold different versions of Python (2.7 / 3) without having to change your local references??

4. How can Kubernets help?
K8s helps with automating deployment, scaling and management of containers.
[Put a couple of lines on features of k8s, rolling updates, declarative configuration etc]
[Give a line on options of where k8s can be run]
[Simplified k8s architecture diagram]
[Install Minikube instructions for windows and mac]
[Install/get kubectl]

5. k8s Deployment
[Show the deployment.yaml file and point out the container name and other properties e.g. replicas etc]
[kubectl create -f deployment.yaml]
[kubectl expose]
[Perhaps show how replicasets work?]

6. Conclude
[Summarise what was learnt and provide next steps for further learning?]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions