/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://www.oreilly.com/library/view/managing-kubernetes/9781492033905/ch04.html

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐