{"id":41449,"date":"2023-11-30T10:43:59","date_gmt":"2023-11-30T10:43:59","guid":{"rendered":"https:\/\/www.devopsschool.com\/blog\/?p=41449"},"modified":"2023-12-01T04:53:08","modified_gmt":"2023-12-01T04:53:08","slug":"helm-commands-reference","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/helm-commands-reference\/","title":{"rendered":"Helm Commands Reference"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"HelmCommandsReference-BasicCommands\">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:&nbsp;<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:&nbsp;<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:&nbsp;<code>helm rollback my-release 1<\/code>&nbsp;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:&nbsp;<code>helm delete my-release<\/code>&nbsp;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:&nbsp;<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:&nbsp;<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:&nbsp;<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:&nbsp;<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\" id=\"HelmCommandsReference-IntermediateCommands\">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:&nbsp;<code>helm repo add stable&nbsp;<a href=\"https:\/\/charts.helm.sh\/stable\" target=\"_blank\" rel=\"noopener\">https:\/\/charts.helm.sh\/stable<\/a><\/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:&nbsp;<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:&nbsp;<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:&nbsp;<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:&nbsp;<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:&nbsp;<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:&nbsp;<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\n\n\n<h2 class=\"wp-block-heading\">Deploying a Chart to Kubernetes Cluster<\/h2>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/8f139c35ad144526f7fc921c14cb3dad.js\"><\/script>\n\n\n\n<h2 class=\"wp-block-heading\">Retrieving information about a Release<\/h2>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/d6573f9c281618fa99338fceccb1cc1c.js\"><\/script>\n\n\n\n<h2 class=\"wp-block-heading\">Upgrading a Release<\/h2>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/925d6e9a42a53cf76c0f65cc8b6b36ca.js\"><\/script>\n\n\n\n<h2 class=\"wp-block-heading\">Rolling back a Release<\/h2>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/b46ee80a7a160fbf094a6bc79d0b92c7.js\"><\/script>\n\n\n\n<h2 class=\"wp-block-heading\">Helm Tutorials: helm show commands<\/h2>\n\n\n\n<script src=\"https:\/\/gist.github.com\/devops-school\/c0ef34c85f500b1eaefcc4dca4ae849b.js\"><\/script>\n","protected":false},"excerpt":{"rendered":"<p>Basic Commands Intermediate Commands Deploying a Chart to Kubernetes Cluster Retrieving information about a Release Upgrading a Release Rolling back a Release Helm Tutorials: helm show commands<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","_joinchat":[],"footnotes":""},"categories":[2],"tags":[],"class_list":["post-41449","post","type-post","status-publish","format-standard","hentry","category-uncategorised"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41449","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=41449"}],"version-history":[{"count":2,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41449\/revisions"}],"predecessor-version":[{"id":41454,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/41449\/revisions\/41454"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=41449"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=41449"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=41449"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}