title: Rename deployment in Kubernetes
body: <p>If I do <code>kubectl get deployments</code>, I get:</p>
  
  <pre><code>$ kubectl get deployments
  NAME                  DESIRED   CURRENT   UP-TO-DATE   AVAILABLE   AGE
  analytics-rethinkdb   1         1         1            1           18h
  frontend              1         1         1            1           6h
  queue                 1         1         1            1           6h
  </code></pre>
  
  <p>Is it possible to rename the deployment to <code>rethinkdb</code>? I have tried googling <code>kubectl edit analytics-rethinkdb</code> and changing the name in the yaml, but that results in an error:</p>
  
  <pre><code>$ kubectl edit deployments/analytics-rethinkdb
  error: metadata.name should not be changed
  </code></pre>
  
  <p>I realize I can just <code>kubectl delete deployments/analytics-rethinkdb</code> and then do <code>kubectl run analytics --image=rethinkdb --command -- rethinkdb etc etc</code> but I feel like it should be possible to simply rename it, no?</p>