<p>After I run the following kubectl command</p>
<pre><code>kubectl create deployment springdeployment --image=docker.io/me/sample-app:latest -o yaml --dry-run=client &gt; sample-app.yaml
</code></pre>
<p>I get an error:</p>
<pre><code>Error: invalid argument &quot;client&quot; for &quot;--dry-run&quot; flag: strconv.ParseBool: parsing &quot;client&quot;: invalid syntax
</code></pre>
<p>although &quot;client&quot; is one of three argument options for &quot;--dry-run&quot; according to kubectl document.</p>
<p>My kubectl version is</p>
<pre><code>Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;14+&quot;, GitVersion:&quot;v1.14.10-dispatcher&quot;, GitCommit:&quot;f5757a1dee5a89cc5e29cd7159076648bf21a02b&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2020-02-12&quot; 
</code></pre>
<p>Based on online data, someone else also run into this error. I, however, haven't seen a solution.</p>
<p>How to resolve this issue?</p>

<p>Your version of kubernetes (kubectl) is too old to support <code>--dry-run=client</code>. In your version this flag was just a boolean.</p>
