{"id":11436,"date":"2025-08-17T16:25:04","date_gmt":"2025-08-17T16:25:04","guid":{"rendered":"https:\/\/putridparrot.com\/blog\/?p=11436"},"modified":"2025-08-17T16:25:04","modified_gmt":"2025-08-17T16:25:04","slug":"listing-the-environment-variables","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/listing-the-environment-variables\/","title":{"rendered":"Listing the environment variables"},"content":{"rendered":"<p>There&#8217;s times when you need to get a list of the environment variables within your OS or in my case, containerd instance running within Kubernetes. <\/p>\n<p><strong>Powershell<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nGet-ChildItem Env:\r\n<\/pre>\n<p>kubectl exec -it my-pod &#8212; powershell -Command &#8220;Get-ChildItem Env:&#8221;<\/p>\n<p><strong>Linux<\/strong><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nenv\r\n<\/pre>\n<p>kubectl exec -it <pod-name> &#8212; env<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nprintenv\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>There&#8217;s times when you need to get a list of the environment variables within your OS or in my case, containerd instance running within Kubernetes. Powershell Get-ChildItem Env: kubectl exec -it my-pod &#8212; powershell -Command &#8220;Get-ChildItem Env:&#8221; Linux env kubectl exec -it &#8212; env printenv<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[314,58,118,53],"tags":[],"class_list":["post-11436","post","type-post","status-publish","format-standard","hentry","category-kubernetes","category-linux","category-powershell","category-windows"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/11436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=11436"}],"version-history":[{"count":2,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/11436\/revisions"}],"predecessor-version":[{"id":11637,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/11436\/revisions\/11637"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=11436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=11436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=11436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}