We have clarified our Privacy Statement even further. Please have a look at our changes.
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.

17 lines
372B

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