A framework for Kubernetes that allows running serverless functions. Serverless functions made easy for Kubernetes through a beautiful UI.
- npm - For managing Node Packages.
- Python3 - For managing the Controller Backend.
- Git - Source control.
sh ./setup.sh
-- to apply all the necessary yaml configurationscd protok_controller; ./crd_controller.py
to run python CRD controllercd protok_controller; ./app.py
to run python app- Now Protok Kubernetes infrastructure should be fully setup if all of these go through
- Clone the repository
$ git clone https://github.com/dprasse/ProtoK.git
- Install the required depenendencies from the main folder.
$ npm install
- Run the startup script that will install the dependencies and launch the frontend and backend server.
$ npm start
- You should now be able to access the frontend through your localhost url
http://localhost:8080/
curl -k -v -XPOST -H "Content-Type: application/json" -d@./protok_controller/templates/controller_create_function.json http://127.0.0.1:5000/apis/stable.protok.com/v1/namespaces/default/serverlessfunctions
-- to create a helloworld function that prints 2 input stringskubectl get serverlessfunctions
-- you should be able to see the newly created function herekubectl get pods
-- make sure that the pods is runningcurl -X POST --data '{"message1": "ok", "message2": "ok"}' http://127.0.0.1:8091/api/v1/namespaces/default/services/helloworld:http-function-port/proxy/ -H "Content-Type: application/json"
- Kubernetes - Container Orchestration.
- Dr. Vijay Chidambaram - CS378 Virtualization Class
- VueJS - Frontend Framework.
- BootstrapVue - Frontend Framework.
- CreativeTim - Portions of Dashboard Templating.
- ExpressJS - Web Backend Framework.
- Flask - Python Backend Framework.