add kubernetes deployment files

This commit is contained in:
2025-07-06 18:56:50 +08:00
parent b4ec264858
commit 89aedbcdad
11 changed files with 635 additions and 11 deletions

15
main.py
View File

@@ -1,13 +1,6 @@
from fastapi import FastAPI
app = FastAPI()
def main():
print("Hello from mark-word-fastapi!")
@app.get("/")
async def root():
return {"message": "Hello World"}
@app.get("/hello/{name}")
async def say_hello(name: str):
return {"message": f"Hello {name}"}
if __name__ == "__main__":
main()