Skip to content

Commit

Permalink
Merge pull request openshift-labs#1139 from blues-man/helm_update
Browse files Browse the repository at this point in the history
Helm update
  • Loading branch information
ryanj authored Jun 3, 2021
2 parents 7e35315 + ad9de8f commit 03c5ecf
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion developing-on-openshift/helm/00-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Learn how to use the [Helm](https://helm.sh/), a package manager that helps you

![Logo](../../assets/developing-on-openshift/helm/logo.png)

[Helm](https:/helm.sh/) is a package manager for Kubernetes which helps users create templated packages called Helm Charts to include all Kubernetes resources that are required to deploy a particular application. Helm then assists with installing the Helm Chart on Kubernetes, and afterwards it can upgrade or rollback the installed package when new versions are available.
[Helm](https://www.openshift.com/learn/topics/helm) is a package manager for Kubernetes which helps users create templated packages called Helm Charts to include all Kubernetes resources that are required to deploy a particular application. Helm then assists with installing the Helm Chart on Kubernetes, and afterwards it can upgrade or rollback the installed package when new versions are available.

## Concepts

Expand Down
4 changes: 2 additions & 2 deletions developing-on-openshift/helm/02-first-chart.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Our code has been already generated with this command:

Inside `my-chart/` folder you will find these files:

`tree my-chart`{{execute}}
`tree helm/my-chart`{{execute}}

* `Chart.yaml`{{open}}: is a YAML file containing multiple fields describing the chart
* `values.yaml`{{open}}:: is a YAML file containing default values for a chart, those may be overridden by users during helm install or helm upgrade.
Expand Down Expand Up @@ -65,7 +65,7 @@ Now let's define which tag to use for this container image. Click the **Copy to

Install our custom Helm Chart from local folder.

`helm install my-chart ./my-chart`{{execute}}
`helm install my-chart ./helm/my-chart`{{execute}}

This will install NGINX like in previous chapter, and we can follow installation like in previous chapter, either from Terminal or OpenShift Console:

Expand Down
4 changes: 2 additions & 2 deletions developing-on-openshift/helm/03-revision.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:

Run `helm upgrade` to publish a new revision containing a `my-charm` Route:

`helm upgrade my-chart ./my-chart`{{execute}}
`helm upgrade my-chart ./helm/my-chart`{{execute}}

Verify new `Route` from Terminal:

Expand All @@ -52,7 +52,7 @@ Verify new `Route` and new `Revision` from Console:

Let's update again our existing release overriding values in `values.yaml` changing `image.pullPolicy` from chart's default value `IfNotPresent` to `Always`, using same method we adopted previously for changing `service.type` with option `--set`:

`helm upgrade my-chart ./my-chart --set image.pullPolicy=Always`{{execute}}
`helm upgrade my-chart ./helm/my-chart --set image.pullPolicy=Always`{{execute}}

Let's verify that our changes is reflected into resulting `Deployment`:

Expand Down
4 changes: 2 additions & 2 deletions developing-on-openshift/helm/99-outro.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Helm Documentation: https://helm.sh

Getting Started with Helm 3 on OpenShift: https://docs.openshift.com/container-platform/latest/cli_reference/helm_cli/getting-started-with-helm-on-openshift-container-platform.html

Read more in the Developers blog:
https://developers.redhat.com/blog/2020/04/30/application-deployment-improvements-in-openshift-4-4/
Read more in the Helm Topic page:
https://www.openshift.com/learn/topics/helm/

Try it out on your workstation! Download [CodeReady Containers](https://developers.redhat.com/products/codeready-containers/overview) to have a local instance of OpenShift Container Platform: https://www.openshift.com/try
1 change: 0 additions & 1 deletion developing-on-openshift/helm/set-env.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/bin/bash
# This is the script to put provisioning things in, this runs in the foreground
set -o pipefail
cd /root/helm
mkdir -p /root/helm/my-chart/charts
clear
echo "Helm Tutorial Ready!"

0 comments on commit 03c5ecf

Please sign in to comment.