<p>I have a set of yaml files which are of different Kinds like </p>

<p>1 PVC</p>

<p>1 PV (The above PVC claims this PV)</p>

<p>1 Service </p>

<p>1 StatefulSet Object (The above Service is for this Stateful Set </p>

<p>1 Config Map (The above Stateful set uses this config map</p>

<p>Does the Install order of these objects matter to bring up an application using these?  </p>

KD157
<p>If you do <code>kubectl apply -f dir</code> on a directory containing all of those files then it should work, at least if you have the latest version as <a href="https://github.com/kubernetes/kubernetes/issues/64203" rel="nofollow noreferrer">there have been bugs raised and addressed in this area</a>. </p>

<p>However, there are some dependencies which aren't hard dependencies and <a href="https://github.com/kubernetes/kubernetes/issues/16448" rel="nofollow noreferrer">for which there is discussion</a>. For this reason some are choosing to <a href="https://github.com/kubernetes/kubernetes/issues/16448#issuecomment-454218437" rel="nofollow noreferrer">order the resources themselves</a> or use a deployment tool like <a href="https://github.com/helm/helm/issues/1228" rel="nofollow noreferrer">helm which deploys</a> resources <a href="https://stackoverflow.com/questions/51957676/helm-install-in-certain-order">in a certain order</a>.</p>
