ctrlok / swissborgtest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is it

web.py - simple python web service

Features:

  • /will​ returning “Hello World” in a JSON format
  • /ready​ returning “It works!” in a JSON format

How to build

You need docker installed

docker build . -t ctrlok/swissapp:0.0.1

How to deploy

You need to install helm

Then run

helm install ./web-helm/  --generate-name

While we didn't have any ingress, you can access your service by port-forwarding:

  # Find your pod
  kubectl get pods
  # Replace $POD_NAME with your POD Name
  kubectl --namespace default port-forward $POD_NAME 8080:8080
  # Create request
  curl localhost:8080/ready

About


Languages

Language:Smarty 65.7%Language:Python 30.6%Language:Dockerfile 3.7%