/simple-kubernetes-example

Very basic kubernetes flask API deployment

Primary LanguagePython

Simple-kubernetes-example

Very basic kubernetes flask API deployment

Code for Catedra de computo cognitivo

Local Setup

pip install -r requirements.txt

Run

Export environment variables

export FLASK_APP=server.py
export FLASK_ENV=development

Start the server

flask run

Then open a browser with the url localhost:5000

Endpoints

GET

  • url/
  • url/<name>
    • name is a string

POST

  • url/
    • parameter
    {
      "name": "string"
    }
    • name is a string

Useful links