Imitate Kubernetes API Flask