<p>So I did update the manifest and replaced <strong>apiVersion: extensions/v1beta1</strong> to <strong>apiVersion: apps/v1</strong></p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: secretmanager
  namespace: kube-system
spec:
  selector:
    matchLabels:
      app: secretmanager
  template:
    metadata:
      labels:
        app: secretmanager
    spec:
    ...
</code></pre>
<p>I then applied the change</p>
<pre><code>k apply -f deployment.yaml

Warning: kubectl apply should be used on resource created by either kubectl create --save-config or kubectl apply
deployment.apps/secretmanager configured
</code></pre>
<p>I also tried</p>
<pre><code>k replace --force -f deployment.yaml
</code></pre>
<p>That recreated the POD (downtime :( ) but still if you try to output the yaml config of the deployment I see the old value</p>
<pre><code>k get deployments -n kube-system secretmanager -o yaml 

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: &quot;1&quot;
    kubectl.kubernetes.io/last-applied-configuration: |
      {&quot;apiVersion&quot;:&quot;apps/v1&quot;,&quot;kind&quot;:&quot;Deployment&quot;,
      &quot;metadata&quot;:{&quot;annotations&quot;:{},&quot;name&quot;:&quot;secretmanager&quot;,&quot;namespace&quot;:&quot;kube-system&quot;}....}
  creationTimestamp: &quot;2020-08-21T21:43:21Z&quot;
  generation: 2
  name: secretmanager
  namespace: kube-system
  resourceVersion: &quot;99352965&quot;
  selfLink: /apis/extensions/v1beta1/namespaces/kube-system/deployments/secretmanager
  uid: 3d49aeb5-08a0-47c8-aac8-78da98d4c342
spec:

</code></pre>
<p>So I still see this <strong>apiVersion: extensions/v1beta1</strong></p>
<h3>What I am doing wrong?</h3>
<p>I am preparing eks kubernetes v1.15 to be migrated over to v1.16</p>

<p>The <code>Deployment</code> <a href="https://github.com/kubernetes/kubernetes/issues/58131#issuecomment-356823588" rel="nofollow noreferrer">exists in multiple apiGroups</a>, so it is ambiguous. Try to specify e.g. <code>apps/v1</code> with:</p>
<pre><code>kubectl get deployments.v1.apps
</code></pre>
<p>and you should see your <code>Deployment</code> but with <code>apps/v1</code> apiGroup.</p>
