title: How do I grab the desired replica sets of a helm release using jsonpath?
body: <p>I have gotten this far:</p>
  
  <p><code>$kubectl get replicaset --namespace default -l "app=myapp,release=myapp" -o jsonpath="{.items[0].metadata.annotations}"</code></p>
  
  <p>Which gives me:</p>
  
  <p><code>map[deployment.kubernetes.io/revision:1 deployment.kubernetes.io/desired-replicas:2 deployment.kubernetes.io/max-replicas:3]</code></p>
  
  <p>I want to extract '2'</p>
  
  <p>I tried various versions of </p>
  
  <p><code>$kubectl get replicaset --namespace default -l "app=myapp,release=myapp" -o jsonpath="{.items[0].metadata.annotations.'deployment.kubernetes.io\/desired-replicas'}"</code></p>
  
  <p>but I am getting a blank response.</p>
  
  <p>Any help is appreciated</p>