<p>I'm using <a href="https://github.com/hashicorp/consul-helm" rel="nofollow noreferrer">consul helm chart repo</a> to install consul agent. I'm installing the chart on my minikube cluster (version 1.10).
The template of the daemonSet for consul client shows apiVersion: <a href="https://github.com/hashicorp/consul-helm/blob/master/templates/client-daemonset.yaml#L3" rel="nofollow noreferrer">apps/v1</a>.
When i'm installing consul and checking the apiVersion I get a different version:</p>
<pre><code>❯ kubectl edit ds consul-agent-consul

apiVersion: extensions/v1beta1
</code></pre>
<p>I can't seem to understand why is that?
When i'm running helm install in dry-run mode I see the correct api version:</p>
<pre><code>❯ helm install consul-agent . --debug --dry-run
# Source: consul/templates/client-daemonset.yaml
# DaemonSet to run the Consul clients on every node.
apiVersion: apps/v1
kind: DaemonSet
</code></pre>
<p>using helm version:</p>
<pre><code>❯ helm version                                                                                                                                                                                                                         
version.BuildInfo{Version:&quot;v3.2.4&quot;, GitCommit:&quot;0ad800ef43d3b826f31a5ad8dfbb4fe05d143688&quot;, GitTreeState:&quot;dirty&quot;, GoVersion:&quot;go1.14.3&quot;}
</code></pre>
<p>Edit:
kubectl version:</p>
<pre><code>Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;16+&quot;, GitVersion:&quot;v1.16.6-beta.0&quot;, GitCommit:&quot;e7f962ba86f4ce7033828210ca3556393c377bcc&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2020-01-15T08:26:26Z&quot;, GoVersion:&quot;go1.13.5&quot;, Compiler:&quot;gc&quot;, Platform:&quot;darwin/amd64&quot;}
Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;10&quot;, GitVersion:&quot;v1.10.0&quot;, GitCommit:&quot;fc32d2f3698e36b93322a3465f63a14e9f0eaead&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2018-03-26T16:44:10Z&quot;, GoVersion:&quot;go1.9.3&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/amd64&quot;}
</code></pre>

deez
<p>The Kubernetes API Server version is <code>1.10.0</code> and kubectl client version is 1.16. Before Kubernetes API Server version <code>1.16</code> <code>DaemonSet</code> were in <code>extensions/v1beta1</code> which was changed to <code>apps/v1</code> in Kubernetes API Server version <code>1.16</code>. You should upgrade Kubernetes API Server version to 1.16 or later if you want to use <code>DaemonSet </code> with <code>apps/v1</code></p>
