[Verse 1] When you need to find the data hidden deep inside JSON structures holding secrets that your pods can't hide Kubectl gives you power with a special query way JSONPath expressions help you find what you need today Start with curly braces, then a dot to lead the way Items is the array where your resources all stay Star inside brackets means you want them every one Metadata dot name reveals each pod when you are done [Chorus] JSONPath queries, dig into the tree Dot notation flowing, find what you can see Curly braces wrapping, expressions that are true Filter through the data, kubectl works for you JSONPath queries, make the data sing Question mark at symbol, filters everything [Verse 2] Nodes hold addresses in a nested array deep Status then addresses where the network details sleep Question mark at symbol starts a filter test inside Type equals InternalIP finds the ones you need to find At dot type equals quotes around InternalIP Closing bracket filters, then dot address is the key This expression pattern helps you query what you need From the complex JSON, simple answers you can read [Chorus] JSONPath queries, dig into the tree Dot notation flowing, find what you can see Curly braces wrapping, expressions that are true Filter through the data, kubectl works for you JSONPath queries, make the data sing Question mark at symbol, filters everything [Bridge] Items star for every single one Brackets hold the filters when you're done Metadata and status, know the structure well JSONPath expressions have a story they can tell [Verse 3] Practice with these patterns till they flow just like a song Curly braces dot and star will never steer you wrong Filters with conditions help you narrow down the field JSONPath with kubectl makes the hidden data yield [Chorus] JSONPath queries, dig into the tree Dot notation flowing, find what you can see Curly braces wrapping, expressions that are true Filter through the data, kubectl works for you JSONPath queries, make the data sing Question mark at symbol, filters everything [Outro] From pods to nodes and more JSONPath opens every door Query smart and query clean Find the data in between
← Watch resources in real-time | Explain any field in a manifest →