Skip to main content

YAML Deployments

Kubernetes natively supports deployments from both JSON and YAML files. However, among the community, YAML is a more frequent option and can be considered a standard.

Deployment from YAMLs is somewhat similar to the Helm charts - the .yaml or .yml file provides object definition or a list of objects. Herewith, it can be directly applied in Kubernetes Dashboard or with the kubectl command-line tool without any additional software installation.

Locale Dropdown

When working over kubectl, use the apply command with the correct path to your deployment YAML file:

kubectl apply -f /path/to/deployment.yaml

On the other hand, the benefit of the Helm charts is advanced flexibility (support of the conditions, replacements, parameters, etc.).