<p>I want to upgrade the kubectl client version to 1.11.3.</p>

<p>I executed <code>brew install kubernetes-cli</code> but the version doesnt seem to be updating. </p>

<pre><code>Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.7", GitCommit:"0c38c362511b20a098d7cd855f1314dad92c2780", GitTreeState:"clean", BuildDate:"2018-08-20T10:09:03Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.4", GitCommit:"bf9a868e8ea3d3a8fa53cbb22f566771b3f8068b", GitTreeState:"clean", BuildDate:"2018-10-25T19:06:30Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
</code></pre>

<p>I'm trying to get the logs for a cell by running this command.</p>

<pre><code>kubectl logs -l groupname/cell=my-cell --all-containers=true
</code></pre>

<p>This works in my VM which has client version 1.11.3. But in my mac it gives me an error saying <code>--all-containers=true</code> flag is not available for <code>kubectl logs</code> command.</p>

Madhuka Wickramapala
<p>Install specific version of <code>kubectl</code></p>
<pre class="lang-bash prettyprint-override"><code>curl -LO https://storage.googleapis.com/kubernetes-release/release/&lt;specific-kubectl-version&gt;/bin/darwin/amd64/kubectl
</code></pre>
<p>For your case if you want to install version <code>v1.11.3</code> then replace <strong>specific-kubectl-version</strong> with <code>v1.11.3</code></p>
<p>Then make this binary executable</p>
<pre class="lang-bash prettyprint-override"><code>chmod +x ./kubectl
</code></pre>
<p>Then move this binary to your <code>PATH</code></p>
<pre class="lang-bash prettyprint-override"><code>sudo mv ./kubectl $(which kubectl)
</code></pre>
