How to get the OpenAPI specification for kubernetes objects

10/17/2018

For example, for the kubernetes pod , it is something like this ( copied from a book , but the author did not mention from where can I get this , he says , the openAPI sepcification) :

{
 "name": "pods",
 "singularName": "",
 "namespaced": true,
 "kind": "Pod",
 "verbs": [
 "create",
 "delete",
 "deletecollection",
 "get",
 "list",
 "patch",
 "proxy",
 "update",
 "watch"
 ],
 "shortNames": [
 "po"
 ],
 "categories": [
 "all"
 ]

How and from where can I get this for other kubernetes objects like RS , SVC , Deployments etc

-- Ijaz Ahmad Khan
json
kubernetes

0 Answers