{"id":3334,"date":"2025-08-11T23:31:15","date_gmt":"2025-08-11T20:31:15","guid":{"rendered":"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/"},"modified":"2025-08-11T23:31:15","modified_gmt":"2025-08-11T20:31:15","slug":"mastering-jsonpath-queries-in-kubernetes-with-kubectl","status":"publish","type":"post","link":"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/","title":{"rendered":"Mastering JSONPath Queries in Kubernetes with Kubectl"},"content":{"rendered":"<p><br \/>\n[*]<\/p>\n<p>Kubernetes, the leading container orchestration platform, provides a robust way to manage and deploy applications. A powerful tool at your disposal when working with Kubernetes is <code>kubectl<\/code>, the command-line interface. One of its most useful features is the ability to parse and filter outputs using JSONPath queries. In this article, we will delve into the intricacies of mastering JSONPath queries with <code>kubectl<\/code>, enabling you to extract exactly the information you need from your Kubernetes resources.<\/p>\n<p>[*]<\/p>\n<h2>Understanding JSONPath<\/h2>\n<p>[*]<\/p>\n<p>JSONPath is a query language for JSON, akin to XPath for XML. It allows you to extract specific portions of the data structure by utilizing a series of notations. When working with Kubernetes, this can mean quickly gathering information about pods, services, deployments, and other API resources without needing to parse through entire outputs.<\/p>\n<p>[*]<\/p>\n<h3>Basic JSONPath Syntax<\/h3>\n<p>[*]<\/p>\n<p>The basic syntax of a JSONPath expression involves using various operators and filters:<\/p>\n<p>[*]<\/p>\n<ul>[*]<\/p>\n<li><strong><code>.<\/code><\/strong>: Access child elements<\/li>\n<p>[*]<\/p>\n<li><strong><code>[]<\/code><\/strong>: Filter array elements<\/li>\n<p>[*]<\/p>\n<li>*<em>`<\/em>`**: Wildcard, to select all elements<\/li>\n<p>[*]<\/p>\n<li><strong><code>,<\/code><\/strong>: Select multiple elements<\/li>\n<p>[*]<\/p>\n<li><strong><code>?()<\/code><\/strong>: Filter based on a condition<\/li>\n<p>[*]\n<\/ul>\n<p>[*]<\/p>\n<h3>Getting Started with Kubectl and JSONPath<\/h3>\n<p>[*]<\/p>\n<p>To use JSONPath with <code>kubectl<\/code>, you will typically append the <code>-o jsonpath<\/code> option to your command. The following steps outline how to effectively use JSONPath queries.<\/p>\n<p>[*]<\/p>\n<ol>[*]<\/p>\n<li>[*]\n<p><strong>Display All Pods<\/strong>: [*]<br \/>\nTo get a list of all pods in a namespace, you can use:[*]<br \/>\nbash[*]<br \/>\nkubectl get pods -o jsonpath='{.items[*].metadata.name}&#8217;<\/p>\n<p>[*]\n<\/li>\n<p>[*]<\/p>\n<li>[*]\n<p><strong>Extract Specific Fields<\/strong>: [*]<br \/>\nIf you want to see just the names of the pods alongside their statuses:[*]<br \/>\nbash[*]<br \/>\nkubectl get pods -o jsonpath='{.items[<em>].metadata.name} {.items[<\/em>].status.phase}&#8217;<\/p>\n<p>[*]\n<\/li>\n<p>[*]<\/p>\n<li>[*]\n<p><strong>Filter Pods by Label<\/strong>:[*]<br \/>\nYou can filter your query based on labels. Suppose you want to find pods with a certain label:[*]<br \/>\nbash[*]<br \/>\nkubectl get pods -l app=myapp -o jsonpath='{.items[*].metadata.name}&#8217;<\/p>\n<p>[*]\n<\/li>\n<p>[*]\n<\/ol>\n<p>[*]<\/p>\n<h3>Advanced JSONPath Queries<\/h3>\n<p>[*]<\/p>\n<p>Once you grasp the basics, you can dive into more advanced queries.<\/p>\n<p>[*]<\/p>\n<ol>[*]<\/p>\n<li>[*]\n<p><strong>Filtering with Conditions<\/strong>:[*]<br \/>\nTo find pods that are in the &#8220;Running&#8221; state:[*]<br \/>\nbash[*]<br \/>\nkubectl get pods -o jsonpath='{.items[?(@.status.phase==&#8221;Running&#8221;)].metadata.name}&#8217;<\/p>\n<p>[*]\n<\/li>\n<p>[*]<\/p>\n<li>[*]\n<p><strong>Multiple Fields<\/strong>:[*]<br \/>\nYou can output several fields, separated by commas:[*]<br \/>\nbash[*]<br \/>\nkubectl get pods -o jsonpath='{.items[<em>].metadata.name},{.items[<\/em>].status.phase}&#8217;<\/p>\n<p>[*]\n<\/li>\n<p>[*]<\/p>\n<li>[*]\n<p><strong>Extracting Nested Information<\/strong>:[*]<br \/>\nTo get the container images of all pods:[*]<br \/>\nbash[*]<br \/>\nkubectl get pods -o jsonpath='{.items[<em>].spec.containers[<\/em>].image}&#8217;<\/p>\n<p>[*]\n<\/li>\n<p>[*]\n<\/ol>\n<p>[*]<\/p>\n<h3>Practical Use Cases<\/h3>\n<p>[*]<\/p>\n<p>Mastering JSONPath queries can significantly enhance your efficiency. Here are a few practical scenarios:<\/p>\n<p>[*]<\/p>\n<ul>[*]<\/p>\n<li>[*]\n<p><strong>Monitoring Resource Status<\/strong>: Quickly check the status of all your deployments:[*]<br \/>\nbash[*]<br \/>\nkubectl get deployments -o jsonpath='{.items[*].status.availableReplicas}&#8217;<\/p>\n<p>[*]\n<\/li>\n<p>[*]<\/p>\n<li>[*]\n<p><strong>Automation Scripts<\/strong>: Use JSONPath in scripts to automate checks during CI\/CD processes, such as ensuring certain deployments have the desired number of replicas.<\/p>\n<p>[*]\n<\/li>\n<p>[*]<\/p>\n<li>[*]\n<p><strong>Custom Dashboards<\/strong>: Integrate JSONPath queries in custom dashboards or tools to visualize the state of your Kubernetes cluster.<\/p>\n<p>[*]\n<\/li>\n<p>[*]\n<\/ul>\n<p>[*]<\/p>\n<h3>Tips for Efficient JSONPath Usage<\/h3>\n<p>[*]<\/p>\n<ol>[*]<\/p>\n<li><strong>Start Simple<\/strong>: Begin with straightforward queries and gradually build complexity.<\/li>\n<p>[*]<\/p>\n<li><strong>Leverage the <code>--help<\/code> Flag<\/strong>: Use <code>kubectl get pods --help<\/code> to explore additional filtering and options available.<\/li>\n<p>[*]<\/p>\n<li><strong>Use Braces Wisely<\/strong>: Ensure you use curly braces <code>{}<\/code> correctly to encapsulate your JSONPath expressions.<\/li>\n<p>[*]\n<\/ol>\n<p>[*]<\/p>\n<h2>Conclusion<\/h2>\n<p>[*]<\/p>\n<p>Mastering JSONPath queries with <code>kubectl<\/code> is a valuable skill that can streamline your Kubernetes management tasks. By enabling you to extract precise information from your Kubernetes resources, JSONPath reduces the time and effort involved in navigating complex outputs.<\/p>\n<p>[*]<\/p>\n<p>As you continue to learn and implement JSONPath in your daily operations, you\u2019ll find that your ability to interact with Kubernetes becomes more intuitive, allowing for a more agile and responsive development cycle. Dive into your Kubernetes clusters with these tools at your disposal, and watch productivity soar. Happy querying!<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>[*] Kubernetes, the leading container orchestration platform, provides a robust way to manage and deploy applications. A powerful tool at your disposal when working with Kubernetes is kubectl, the command-line interface. One of its most useful features is the ability to parse and filter outputs using JSONPath queries. In this article, we will delve into [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":3335,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_et_pb_use_builder":"","_et_pb_old_content":"","_et_gb_content_width":"","inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[213],"tags":[428,443,217,200,429],"class_list":["post-3334","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-kubernetes","tag-jsonpath","tag-kubectl","tag-kubernetes","tag-mastering","tag-queries","et-has-post-format-content","et_post_format-et-post-format-standard"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.5 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Mastering JSONPath Queries in Kubernetes with Kubectl - WafaTech Blogs<\/title>\n<meta name=\"description\" content=\"Mastering JSONPath Queries in Kubernetes with Kubectl %\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Mastering JSONPath Queries in Kubernetes with Kubectl\" \/>\n<meta property=\"og:description\" content=\"Mastering JSONPath Queries in Kubernetes with Kubectl %\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/\" \/>\n<meta property=\"og:site_name\" content=\"WafaTech Blogs\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/WafaTech\/61560546351289\/\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-11T20:31:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2024\/06\/logo_big.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"2221\" \/>\n\t<meta property=\"og:image:height\" content=\"482\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"WafaTech SA\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@wafatech_sa\" \/>\n<meta name=\"twitter:site\" content=\"@wafatech_sa\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"WafaTech SA\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":[\"Article\",\"BlogPosting\"],\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/devops\\\/kubernetes\\\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/devops\\\/kubernetes\\\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\\\/\"},\"author\":{\"name\":\"WafaTech SA\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/person\\\/1a5761fc0feb63ab59d295d7c2648f06\"},\"headline\":\"Mastering JSONPath Queries in Kubernetes with Kubectl\",\"datePublished\":\"2025-08-11T20:31:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/devops\\\/kubernetes\\\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\\\/\"},\"wordCount\":580,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/devops\\\/kubernetes\\\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/Mastering-JSONPath-Queries-in-Kubernetes-with-Kubectl.png\",\"keywords\":[\"JSONPath\",\"Kubectl\",\"Kubernetes\",\"Mastering\",\"Queries\"],\"articleSection\":[\"Kubernetes\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/wafatech.sa\\\/blog\\\/devops\\\/kubernetes\\\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/devops\\\/kubernetes\\\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\\\/\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/devops\\\/kubernetes\\\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\\\/\",\"name\":\"Mastering JSONPath Queries in Kubernetes with Kubectl - WafaTech Blogs\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/devops\\\/kubernetes\\\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/devops\\\/kubernetes\\\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/Mastering-JSONPath-Queries-in-Kubernetes-with-Kubectl.png\",\"datePublished\":\"2025-08-11T20:31:15+00:00\",\"description\":\"Mastering JSONPath Queries in Kubernetes with Kubectl %\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/devops\\\/kubernetes\\\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/wafatech.sa\\\/blog\\\/devops\\\/kubernetes\\\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/devops\\\/kubernetes\\\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\\\/#primaryimage\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/Mastering-JSONPath-Queries-in-Kubernetes-with-Kubectl.png\",\"contentUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/08\\\/Mastering-JSONPath-Queries-in-Kubernetes-with-Kubectl.png\",\"width\":1024,\"height\":1024,\"caption\":\"JSONPath in Kubectl\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/devops\\\/kubernetes\\\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mastering JSONPath Queries in Kubernetes with Kubectl\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/\",\"name\":\"WafaTech Blogs\",\"description\":\"Smart Technologies\",\"publisher\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#organization\"},\"alternateName\":\"WafaTech\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#organization\",\"name\":\"WafaTech Blogs\",\"alternateName\":\"WafaTech\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/logo_big.webp\",\"contentUrl\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/logo_big.webp\",\"width\":2221,\"height\":482,\"caption\":\"WafaTech Blogs\"},\"image\":{\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/people\\\/WafaTech\\\/61560546351289\\\/\",\"https:\\\/\\\/x.com\\\/wafatech_sa\",\"https:\\\/\\\/www.youtube.com\\\/@wafatech-sa\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/wafatech\\\/\"],\"description\":\"WafaTech, a leading Saudi IT services provider, specializes in cloud solutions, connectivity, and ICT services. Offering secure cloud infrastructure, high-speed internet, and ICT solutions like hosting, backup, and disaster recovery, WafaTech operates a Tier 3 data center at KAUST with ISO certifications. Regulated by CST, the company is committed to innovation, security, and customer satisfaction, empowering businesses in the digital age.\",\"email\":\"sales@wafatech.sa\",\"legalName\":\"Al-Wafa Al-Dhakia For Information Technology LLC\",\"foundingDate\":\"2013-01-08\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/#\\\/schema\\\/person\\\/1a5761fc0feb63ab59d295d7c2648f06\",\"name\":\"WafaTech SA\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g\",\"caption\":\"WafaTech SA\"},\"url\":\"https:\\\/\\\/wafatech.sa\\\/blog\\\/author\\\/omer-yaseen\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Mastering JSONPath Queries in Kubernetes with Kubectl - WafaTech Blogs","description":"Mastering JSONPath Queries in Kubernetes with Kubectl %","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/","og_locale":"en_US","og_type":"article","og_title":"Mastering JSONPath Queries in Kubernetes with Kubectl","og_description":"Mastering JSONPath Queries in Kubernetes with Kubectl %","og_url":"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/","og_site_name":"WafaTech Blogs","article_publisher":"https:\/\/www.facebook.com\/people\/WafaTech\/61560546351289\/","article_published_time":"2025-08-11T20:31:15+00:00","og_image":[{"width":2221,"height":482,"url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2024\/06\/logo_big.webp","type":"image\/webp"}],"author":"WafaTech SA","twitter_card":"summary_large_image","twitter_creator":"@wafatech_sa","twitter_site":"@wafatech_sa","twitter_misc":{"Written by":"WafaTech SA","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":["Article","BlogPosting"],"@id":"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/#article","isPartOf":{"@id":"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/"},"author":{"name":"WafaTech SA","@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/person\/1a5761fc0feb63ab59d295d7c2648f06"},"headline":"Mastering JSONPath Queries in Kubernetes with Kubectl","datePublished":"2025-08-11T20:31:15+00:00","mainEntityOfPage":{"@id":"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/"},"wordCount":580,"commentCount":0,"publisher":{"@id":"https:\/\/wafatech.sa\/blog\/#organization"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/#primaryimage"},"thumbnailUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/08\/Mastering-JSONPath-Queries-in-Kubernetes-with-Kubectl.png","keywords":["JSONPath","Kubectl","Kubernetes","Mastering","Queries"],"articleSection":["Kubernetes"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/","url":"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/","name":"Mastering JSONPath Queries in Kubernetes with Kubectl - WafaTech Blogs","isPartOf":{"@id":"https:\/\/wafatech.sa\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/#primaryimage"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/#primaryimage"},"thumbnailUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/08\/Mastering-JSONPath-Queries-in-Kubernetes-with-Kubectl.png","datePublished":"2025-08-11T20:31:15+00:00","description":"Mastering JSONPath Queries in Kubernetes with Kubectl %","breadcrumb":{"@id":"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/#primaryimage","url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/08\/Mastering-JSONPath-Queries-in-Kubernetes-with-Kubectl.png","contentUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/08\/Mastering-JSONPath-Queries-in-Kubernetes-with-Kubectl.png","width":1024,"height":1024,"caption":"JSONPath in Kubectl"},{"@type":"BreadcrumbList","@id":"https:\/\/wafatech.sa\/blog\/devops\/kubernetes\/mastering-jsonpath-queries-in-kubernetes-with-kubectl\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wafatech.sa\/blog\/"},{"@type":"ListItem","position":2,"name":"Mastering JSONPath Queries in Kubernetes with Kubectl"}]},{"@type":"WebSite","@id":"https:\/\/wafatech.sa\/blog\/#website","url":"https:\/\/wafatech.sa\/blog\/","name":"WafaTech Blogs","description":"Smart Technologies","publisher":{"@id":"https:\/\/wafatech.sa\/blog\/#organization"},"alternateName":"WafaTech","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wafatech.sa\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/wafatech.sa\/blog\/#organization","name":"WafaTech Blogs","alternateName":"WafaTech","url":"https:\/\/wafatech.sa\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2024\/06\/logo_big.webp","contentUrl":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2024\/06\/logo_big.webp","width":2221,"height":482,"caption":"WafaTech Blogs"},"image":{"@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/WafaTech\/61560546351289\/","https:\/\/x.com\/wafatech_sa","https:\/\/www.youtube.com\/@wafatech-sa","https:\/\/www.linkedin.com\/company\/wafatech\/"],"description":"WafaTech, a leading Saudi IT services provider, specializes in cloud solutions, connectivity, and ICT services. Offering secure cloud infrastructure, high-speed internet, and ICT solutions like hosting, backup, and disaster recovery, WafaTech operates a Tier 3 data center at KAUST with ISO certifications. Regulated by CST, the company is committed to innovation, security, and customer satisfaction, empowering businesses in the digital age.","email":"sales@wafatech.sa","legalName":"Al-Wafa Al-Dhakia For Information Technology LLC","foundingDate":"2013-01-08","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/wafatech.sa\/blog\/#\/schema\/person\/1a5761fc0feb63ab59d295d7c2648f06","name":"WafaTech SA","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fde877f001a2e0497276edc0684d3ba2a416c0de8caeb8e785076a1b1b932b3a?s=96&d=mm&r=g","caption":"WafaTech SA"},"url":"https:\/\/wafatech.sa\/blog\/author\/omer-yaseen\/"}]}},"jetpack_featured_media_url":"https:\/\/wafatech.sa\/blog\/wp-content\/uploads\/2025\/08\/Mastering-JSONPath-Queries-in-Kubernetes-with-Kubectl.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts\/3334","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/comments?post=3334"}],"version-history":[{"count":0,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/posts\/3334\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/media\/3335"}],"wp:attachment":[{"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/media?parent=3334"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/categories?post=3334"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wafatech.sa\/blog\/wp-json\/wp\/v2\/tags?post=3334"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}