title: Cloud Build - "rollout restart" not recognized (unknown command)
body: <p>I have a small <code>cloudbuild.yaml</code> file where I build a Docker image, push it to <a href="https://cloud.google.com/container-registry/" rel="nofollow noreferrer">Google container registry</a> (GCR) and then apply the changes to my Kubernetes cluster. It looks like this:</p>
  
  <pre><code>steps:
  
    - name: 'gcr.io/cloud-builders/docker'
      entrypoint: 'bash'
      args: [
      '-c',
      'docker pull gcr.io/$PROJECT_ID/frontend:latest || exit 0'
      ]
  
    - name: "gcr.io/cloud-builders/docker"
      args:
        [
          "build",
          "-f",
          "./services/frontend/prod.Dockerfile",
          "-t",
          "gcr.io/$PROJECT_ID/frontend:$REVISION_ID",
          "-t",
          "gcr.io/$PROJECT_ID/frontend:latest",
          ".",
        ]
  
    - name: "gcr.io/cloud-builders/docker"
      args: ["push", "gcr.io/$PROJECT_ID/frontend"]
  
    - name: "gcr.io/cloud-builders/kubectl"
      args: ["apply", "-f", "kubernetes/gcp/frontend.yaml"]
      env:
        - "CLOUDSDK_COMPUTE_ZONE=europe-west3-a"
        - "CLOUDSDK_CONTAINER_CLUSTER=cents-ideas"
  
    - name: "gcr.io/cloud-builders/kubectl"
      args: ["rollout", "restart", "deployment/frontend-deployment"]
      env:
        - "CLOUDSDK_COMPUTE_ZONE=europe-west3-a"
        - "CLOUDSDK_CONTAINER_CLUSTER=cents-ideas"
  
  </code></pre>
  
  <p>The build runs smoothly, until the last step. <code>args: ["rollout", "restart", "deployment/frontend-deployment"]</code>. It has the following log output:</p>
  
  <pre><code>Already have image (with digest): gcr.io/cloud-builders/kubectl
  Running: gcloud container clusters get-credentials --project="cents-ideas" --zone="europe-west3-a" "cents-ideas"
  Fetching cluster endpoint and auth data.
  kubeconfig entry generated for cents-ideas.
  Running: kubectl rollout restart deployment/frontend-deployment
  error: unknown command "restart deployment/frontend-deployment"
  See 'kubectl rollout -h' for help and examples.
  </code></pre>
  
  <p>Allegedly, <code>restart</code> is an unknown command. But it works when I run <code>kubectl rollout restart deployment/frontend-deployment</code> manually.</p>
  
  <p>How can I fix this problem?</p>