<p>I am using below command to patch new storage to volumeclaimtemplate:</p>
<pre><code> minikube kubectl -- --namespace default patch pvc elasticsearch-data-elasticsearch-data-0 --patch '{\&quot;spec\&quot;: {\&quot;volumeClaimTemplate\&quot;: {\&quot;requests\&quot;: {\&quot;storage\&quot;: \&quot;2Gi\&quot;}}}}'
</code></pre>
<p>But, I am getting the below error:</p>
<pre><code>error: unable to parse &quot;'{\&quot;spec\&quot;:&quot;: YAML: found unexpected end of stream. 
</code></pre>
<p>Should I use another escape character instead of &quot;&quot;?
Please Help.</p>

SecureTech
<p>Replacing single quote and escaping double quotes worked for me.</p>
<p>Result is then :</p>
<pre><code>--patch &quot;{\&quot;spec\&quot;: {\&quot;volumeClaimTemplate\&quot;: {\&quot;requests\&quot;: {\&quot;storage\&quot;: \&quot;2Gi\&quot;}}}}&quot;
</code></pre>
