beomsoobeomsoo
beomsoobeomsoo

Reputation: 1

how to use kubectl -o jsonpath if key have '.'?

I went to get a value in yaml. so I use a kubeclt ~~ -o jsonpath=~~~ if key have '.' what should command make?

ex) apiVersion: v1 items:

Can I get a value , key is 'hdd-ceph-fs.storageclass.storage.k8s.io/requests.storage' ???

Upvotes: 0

Views: 348

Answers (1)

jack zhang
jack zhang

Reputation: 11

I finally tried it out!

kubectl get secret something -o jsonpath={.data.hello\\.world}

Upvotes: 1

Related Questions