Skip to content

Commit

Permalink
Add Flask to Kashira
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisht13 committed Aug 23, 2023
1 parent da19ecb commit 34fb474
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
12 changes: 11 additions & 1 deletion Kashira/src/app.py
Original file line number Diff line number Diff line change
@@ -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_'

Expand All @@ -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
return resp

@app.route('/')
def hello():
return "Hello, world!"

if __name__ == '__main__':
app.run()
3 changes: 2 additions & 1 deletion Kashira/src/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
kubernetes
kubernetes
Flask

0 comments on commit 34fb474

Please sign in to comment.