diff --git a/Kashira/src/app.py b/Kashira/src/app.py index 5dd4578..d0c1877 100644 --- a/Kashira/src/app.py +++ b/Kashira/src/app.py @@ -1,6 +1,9 @@ import random from kubernetes import config, client from kubernetes.stream import stream +from flask import Flask + +app = Flask(__name__) flag_chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_' @@ -25,4 +28,11 @@ def pod_executor(command, pod_name, pod_namespace): command=exec_command, stderr=True, stdin=False, stdout=True, tty=False) - return resp \ No newline at end of file + return resp + +@app.route('/') +def hello(): + return "Hello, world!" + +if __name__ == '__main__': + app.run() diff --git a/Kashira/src/requirements.txt b/Kashira/src/requirements.txt index 70cfe55..af8289a 100644 --- a/Kashira/src/requirements.txt +++ b/Kashira/src/requirements.txt @@ -1 +1,2 @@ -kubernetes \ No newline at end of file +kubernetes +Flask \ No newline at end of file