Command

Kubernetes Apply Multiple Manifest Files Command

The Kubernetes command to apply multiple manifest files is kubectl apply -f ./my1.yaml -f ./my2.yaml.

Quick Answer

Command
kubectl apply -f ./my1.yaml -f ./my2.yaml
KubernetesCommand

Apply Multiple Manifest Files

Type this command
kubectl apply -f ./my1.yaml -f ./my2.yaml

Creates resources from several manifest files at once.

Learn More

How to apply multiple manifest files in Kubernetes

  1. Open the terminal or command interface for Kubernetes.
  2. Type kubectl apply -f ./my1.yaml -f ./my2.yaml, replace any placeholders, and run it.

Kubernetes Apply Multiple Manifest Files Command

Run kubectl apply -f ./my1.yaml -f ./my2.yaml.

Related Commands

Frequently asked questions

What is the Kubernetes command to apply multiple manifest files?

Run kubectl apply -f ./my1.yaml -f ./my2.yaml.

Where do I type this Kubernetes command?

Type it in the terminal or command-line interface used by Kubernetes.

Does this Kubernetes command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify