/swaggerapi
Before Kubernetes 1.10, serves Swagger 1.2
/openapi/v2
Kubernetes 1.10 and beyond, serves OpenAPI (Swagger 2.0)
kubectl proxy
curl localhost:8001/openapi/v2 > swagger.json
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/b88cbf60cb8965e539e4519ae77c924c.png)
参考
https://www.oreilly.com/library/view/managing-kubernetes/9781492033905/ch04.html