Command

Kubernetes Apply Manifests in a Directory Command

The Kubernetes command to apply manifests in a directory is kubectl apply -f ./dir.

Quick Answer

Command
kubectl apply -f ./dir
KubernetesCommand

Apply Manifests in a Directory

Type this command
kubectl apply -f ./dir

Creates resources from all manifest files in a directory.

Learn More

How to apply manifests in a directory in Kubernetes

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

Kubernetes Apply Manifests in a Directory Command

Run kubectl apply -f ./dir.

Related Commands

Frequently asked questions

What is the Kubernetes command to apply manifests in a directory?

Run kubectl apply -f ./dir.

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