{"id":36189,"date":"2023-06-26T03:32:27","date_gmt":"2023-06-26T03:32:27","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=36189"},"modified":"2023-06-27T02:17:25","modified_gmt":"2023-06-27T02:17:25","slug":"helm-tutorials-helm-commands-with-example-and-use-cases","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/helm-tutorials-helm-commands-with-example-and-use-cases\/","title":{"rendered":"Helm Tutorials: Helm Commands with example and use cases"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Basic Commands<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>helm install<\/strong>: This command is used to install a chart and create a new release. Example: <code>helm install my-release stable\/mysql<\/code>Use case: Installing a MySQL database using the stable\/mysql chart.<\/li>\n\n\n\n<li><strong>helm upgrade<\/strong>: This command is used to upgrade a release to a new version of a chart or modify its configuration.Example: <code>helm upgrade my-release stable\/mysql --set mysqlRootPassword=newpassword<\/code>Use case: Upgrading the my-release MySQL database to a new version and changing the root password.<\/li>\n\n\n\n<li><strong>helm rollback<\/strong>: This command is used to roll back a release to a previous version.Example: <code>helm rollback my-release 1<\/code> Use case: Reverting the my-release MySQL database to version 1 after encountering issues with version 2.<\/li>\n\n\n\n<li><strong>helm delete<\/strong>: This command is used to delete a release and free up the resources associated with it.Example: <code>helm delete my-release<\/code> Use case: Removing the my-release MySQL database from the Kubernetes cluster.<\/li>\n\n\n\n<li><strong>helm list<\/strong>: This command is used to list all the installed releases.Example: <code>helm list<\/code>Use case: Checking the list of installed releases in the cluster.<\/li>\n\n\n\n<li><strong>helm status<\/strong>: This command is used to get the status of a release.Example: <code>helm status my-release<\/code>Use case: Checking the status of the my-release MySQL database.<\/li>\n\n\n\n<li><strong>helm search<\/strong>: This command is used to search for available charts in Helm repositories.Example: <code>helm search repo mysql<\/code>Use case: Searching for available MySQL-related charts in Helm repositories.<\/li>\n\n\n\n<li><strong>helm dependency update<\/strong>: This command is used to download the dependencies for a chart.Example: <code>helm dependency update my-chart<\/code>Use case: Downloading the dependencies required for the custom chart named my-chart.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Intermediate Commands<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>helm repo add<\/strong>: This command is used to add a Helm repository to your local environment.Example: <code>helm repo add stable https:\/\/charts.helm.sh\/stable<\/code>Use case: Adding the stable repository to your local Helm environment to access charts from the stable repository.<\/li>\n\n\n\n<li><strong>helm repo update<\/strong>: This command is used to update the local cache of Helm repositories.Example: <code>helm repo update<\/code>Use case: Refreshing the local cache to ensure that you have the latest versions of the charts from the added repositories.<\/li>\n\n\n\n<li><strong>helm lint<\/strong>: This command is used to lint a chart to validate its syntax and configuration.Example: <code>helm lint my-chart<\/code>Use case: Checking the syntax and configuration of a custom chart named my-chart to ensure it is valid.<\/li>\n\n\n\n<li><strong>helm package<\/strong>: This command is used to package a chart directory into a compressed chart archive.Example: <code>helm package my-chart<\/code>Use case: Creating a compressed chart archive from a chart directory named my-chart to distribute or install it locally.<\/li>\n\n\n\n<li><strong>helm history<\/strong>: This command is used to view the release history of a chart.Example: <code>helm history my-release<\/code>Use case: Viewing the history of the my-release chart, including the revision numbers, dates, and statuses of the previous releases.<\/li>\n\n\n\n<li><strong>helm show<\/strong>: This command is used to display information about a chart or a release.Example: <code>helm show chart stable\/mysql<\/code>Use case: Displaying information about the stable\/mysql chart, such as its description, maintainers, and dependencies.<\/li>\n\n\n\n<li><strong>helm template<\/strong>: This command is used to render a chart locally without installing it.Example: <code>helm template my-chart<\/code>Use case: Generating the Kubernetes manifests from a chart named my-chart without deploying it, useful for inspection or customization purposes.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Basic Commands Intermediate Commands<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-36189","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/36189","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=36189"}],"version-history":[{"count":3,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/36189\/revisions"}],"predecessor-version":[{"id":36215,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/36189\/revisions\/36215"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=36189"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=36189"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=36189"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}