title: Updating kubernetes pod
body: <p>I have this deployment.yaml for kubernetes</p>
  <pre><code>---
  apiVersion: v1
  kind: Service
  metadata:
    name: smart-flats
    labels:
      app: smart-flats
  spec:
    type: NodePort
    selector:
      app: smart-flats
    ports:
    - protocol: TCP
      port: 5000
      name: http
      
  ---
  apiVersion: v1
  kind: ReplicationController
  metadata:
    name: smart-flats
  spec:
    replicas: 1
    template:
      metadata:
        labels:
          app: smart-flats
      spec:
        containers:
        - name: smart-flats
          image: sleezy/go-hello-world:&lt;VERSION&gt;
          env:
          - name: SECRETKEY
            value: &quot;${CONFIG_SECRETKEY}&quot;
          ports:
          - containerPort: 5000
          livenessProbe:
            httpGet:
              path: /health
              port: 5000
            initialDelaySeconds: 30
            timeoutSeconds: 1
  </code></pre>
  <p>but when i try to push new version of app, kubectl get pods still show the first one and no updated version, what should i do? i need update pod everytime i push new version. Thanks!</p>