title: check if Kubernetes deployment was sucessful in CI/CD pipeline
body: <p>I have an AKS cluster with Kubernetes version 1.14.7.</p>
  
  <p>I have build CI/CD pipelines to deploy newly created images to the cluster. </p>
  
  <p>I am using kubectl apply to update a specific deployment with the new image. sometimes and for many reasons, the deployment fails, for example ImagePullBackOff. </p>
  
  <p>is there a command to run after the kubectl apply command to check if the pod creation and deployment was successful? </p>