<p>I am trying to use <a href="https://www.terraform.io/docs/providers/kubernetes/r/deployment.html" rel="nofollow noreferrer">Kubernetes Deployment</a> , i would like to know whether this is same as <code>kubectl apply -f deployment.yaml</code> or does this wait for the deployments to be up and running . because when i used <code>kubernetes deployment</code> to create a basic pod which i know will not work, i got this error </p>

<p><code>Error: Waiting for rollout to finish: 0 of 1 updated replicas are available...</code></p>

<p>Is this just giving me the error from <code>kubernetes</code> or the entire <code>terraform</code> script fails because of this?</p>

doc_noob
<p>According to the <a href="https://www.terraform.io/docs/providers/kubernetes/r/deployment.html" rel="nofollow noreferrer">documentation</a></p>

<blockquote>
  <p>A Deployment ensures that a specified number of pod “replicas” are running at any one time. In other words, a Deployment makes sure that a pod or homogeneous set of pods are always up and available. If there are too many pods, it will kill some. If there are too few, the Deployment will start more.</p>
</blockquote>

<p>So, It will wait to ensure number of expected replicas are up</p>
