Command

Kubernetes Apply a Manifest File Command

The Kubernetes command to apply a manifest file is kubectl apply -f ./my-manifest.yaml.

Quick Answer

Command
kubectl apply -f ./my-manifest.yaml
KubernetesCommand

Apply a Manifest File

Type this command
kubectl apply -f ./my-manifest.yaml

Creates or updates resources from a manifest file.

Learn More

How to apply a manifest file in Kubernetes

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

Kubernetes Apply a Manifest File Command

Run kubectl apply -f ./my-manifest.yaml.

Related Commands

Frequently asked questions

What is the Kubernetes command to apply a manifest file?

Run kubectl apply -f ./my-manifest.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