HELM v3 Demo for OpenShift 4
This is a quick demo about how to use Helm with OpenShift 4. It is based on the following article in opensource.com.
Prepare your environment
Setup your OpenShift cluster (usecode-ready/crc), login into it with the user developer and create a new project
$> crc setup && crc start
$> oc login -u developer -p developer https://api.crc.testing:6443/
$> oc new-project helm-demo
Setup helm on Mac
If you want to play locally, you have to setup helm. Either download it from the official website or install it via homebrew.
$> brew install helm
Other OS'ses
Just read here: https://helm.sh
Demo
A simple demo guide
Explain local files
$ tree
.
├── Chart.yaml
├── README.md
├── charts
├── templates
│ ├── NOTES.txt
│ ├── _helpers.tpl
│ ├── configMap.yaml
│ ├── deployment.yaml
│ ├── hpa.yaml
│ ├── ingress.yaml
│ ├── route.yaml
│ ├── service.yaml
│ ├── serviceaccount.yaml
│ └── tests
│ └── test-connection.yaml
└── values.yaml
3 directories, 13 files
Install the chart
$> helm install my-app-chart ./helm-demo --values ./helm-demo/values.yaml
Make a simple update
Don’t forget to update Chart.yaml versions and then
$> helm upgrade my-app-chart ./helm-demo --values ./helm-demo/values.yaml