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.
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).
Powered by BetterDocs
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.