Is there a way to run my multiple deployment yml files in an order .. that inclu . . .

Praneeth TT:
is there a way to run my multiple deployment yml files in an order … that include deployments, secret, service etc… can i use Helm for this… pls correct me if I’m wrong

Trung Tran:
It will make sense if these yaml are part of same system/application, IMO.

Nitish Patni:
use — in starting of each kind
example


apiVersion: v1
kind: pod
.
.

apiVersion: v1
kind: deployment

but all these should be in same system/cluster and in single yaml file

Nitish Patni:
helm is a good approach btw to use it but should be in same system or cluster

Praneeth TT:
yes same system and i dont want to be single yml file so that’s why

unnivkn:
Hi @Praneeth TT may I know why you need to run this in a specific order?

Praneeth TT:
Just curious to know abt that since the ansible is running in that manner so.

unnivkn:
okie… usually all the related apps(deployment’s+ multiple service’s + cm + ingress etc) you may keep it in a specific folder & apply together, instead of apply it individually… Sometimes there may be a dependency, then you may try to use some logic like init container to wait for the other dependent pod to come up.
eg: k apply -f ./kube-manifests-v1/
k delete -f ./kube-manifests-v1/

Praneeth TT:
Got it thanks @unnivkn cheta