Reputation: 1
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
Reputation: 11
I finally tried it out!
kubectl get secret something -o jsonpath={.data.hello\\.world}
Upvotes: 1