{"id":5268,"date":"2026-06-09T16:44:00","date_gmt":"2026-06-09T16:44:00","guid":{"rendered":"https:\/\/geekmungus.co.uk\/?p=5268"},"modified":"2026-06-09T16:44:00","modified_gmt":"2026-06-09T16:44:00","slug":"kubenetes-api-reference","status":"publish","type":"post","link":"https:\/\/geekmungus.co.uk\/?p=5268","title":{"rendered":"Kubenetes API Reference"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">A quick way to see the API Resources for your Kubernetes cluster is via the command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl api-resources<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">You get an output such as the following:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"937\" height=\"474\" src=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2026\/06\/image.png\" alt=\"\" class=\"wp-image-5271\" srcset=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2026\/06\/image.png 937w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2026\/06\/image-300x152.png 300w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2026\/06\/image-768x389.png 768w\" sizes=\"auto, (max-width: 937px) 100vw, 937px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s take a quick look at some of the resources available.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The api-resources &#8220;pods&#8221; for example is under the &#8220;v1&#8221; ApiVersion, hence why when you are creating your YAML file for use with kubectl you just enter &#8220;v1&#8221; at the top, this is also namespaced meaning that you can refer to pods in different namespaces.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can filter by API group with something such as the following which will just show the <strong>storage.k8s.io<\/strong> group.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl api-resources --api-group=storage.k8s.io<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"624\" height=\"122\" src=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2026\/06\/image-1.png\" alt=\"\" class=\"wp-image-5272\" srcset=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2026\/06\/image-1.png 624w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2026\/06\/image-1-300x59.png 300w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you wanted to see what verbs it can use, then you can run, i.e. what things you can do to this particular resource:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>kubectl api-resources --api-group=storage.k8s.io -o wide<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"114\" src=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2026\/06\/image-2-1024x114.png\" alt=\"\" class=\"wp-image-5273\" srcset=\"https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2026\/06\/image-2-1024x114.png 1024w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2026\/06\/image-2-300x33.png 300w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2026\/06\/image-2-768x86.png 768w, https:\/\/geekmungus.co.uk\/wp-content\/uploads\/2026\/06\/image-2.png 1148w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>A quick way to see the API Resources for your Kubernetes cluster is via the command: You get an output such as the following: Let&#8217;s take a quick look at some of the resources available. The api-resources &#8220;pods&#8221; for example is under the &#8220;v1&#8221; ApiVersion, hence why when you are creating your YAML file for &#8230; <a title=\"Kubenetes API Reference\" class=\"read-more\" href=\"https:\/\/geekmungus.co.uk\/?p=5268\" aria-label=\"Read more about Kubenetes API Reference\">Read more<\/a><\/p>\n","protected":false},"author":4,"featured_media":4850,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5268","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/5268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5268"}],"version-history":[{"count":3,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/5268\/revisions"}],"predecessor-version":[{"id":5274,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/5268\/revisions\/5274"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=\/wp\/v2\/media\/4850"}],"wp:attachment":[{"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5268"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5268"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/geekmungus.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}