JAEN

Kubernetes

kubectl apply

CautionApply manifests

kubectl apply -f <file>

Applies YAML manifests to create/update resources.

Examples

  • kubectl apply -f deploy.yamlApply a definition

Syntax

kubectl apply -f <file|dir> [-n <ns>]

Before you run it

Modifies live resources; review with diff first.

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store