loading...empty;done;/kubernetes-yaml-deployments/:-uriKubernetes YAML Deployments | iNET.elastic Dev Docs

Kubernetes Cluster: 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.

kubernetes dashboard deploy application with yaml

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

1
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.).

What’s next?