Kubernetes + Python = ❤
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
372 B

from aiohttp import web
async def hello(request):
return web.Response(text="Hello, world")
async def health(request):
return web.Response(text="OK")
app = web.Application()
app.add_routes([web.get("/", hello)])
app.add_routes([web.get("/health", health)])
# disable SIGTERM handling for disruption-free rolling updates
web.run_app(app, handle_signals=False)