Skip to content

This repository contains the work related to Helm3 Openshift workshop.

License

Notifications You must be signed in to change notification settings

IBM/helm-openshift-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Helm3 Your OpenShift

About this workskhop

This repository contains the work related to Helm3 Openshift workshop. As this workshop, the shared experience of travel brings people together. As a visitor you have the opportunity to see different landmarks; in this workshop a microservice containing landmarks informations will be deployed via Helm Charts and will have its data persisted in a database (also managed with Helm Charts). The visitor microservice will get the informations about a landmark at a certain address via an API endpoint exposed by the deployed landmark microservice.

Throughout this workshop you will improve your knowledge on deploying Java based applications using three Helm charts techniques (click on each URL below to reach each of them):

At the end of this workshop you should be able to understand and use Helm on an OpenShift v4.4+ edition. Happy travelling through each of the sections!


Prerequisites

For this workshop code-ready containers will be used, which create a local single-VM Openshift 4 cluster on your laptop.

Other pre-requirements that must be met in your system are:

OpenShift Origin v4 setup

In order to get started with OpenShift v4.x Code Ready Containers will be used. You can download CodeReady Containers from the product page.

Please open any of the below links, depending on your OS to setup the downloaded Code Ready Containers:

Helm setup

Helm is a packager for Kubernetes that bundles related manifest files and packages them into a single logical deployment unit: Chart. Simplified, for many engineers Helm makes it easy to start using Kubernetes with real applications. Helm Charts are useful for addressing the installation complexities and simple upgrades of particularly stateless applications like web apps. Say goodbye to the many, long, hard-coded yaml files and embrace an easier way to manage your deployed applications!

In v3, Helm is used entirely through the helm CLI. The Helm CLI is a utility usually run interactively outside of the cluster.

Users find a chart for the desired software, parameterize its resources through Helm to deploy Kubernetes artifacts and this eventually brings up said software.

Before diving into installing Helm, make sure you have installed Go, version 1.12 or higher. The bellow links describe how to install Helm on different platforms using the CLI:

Always validate your helm installation by running:

$ helm version

Check your environment readiness

Start your crc environment if it’s not already up.

$ crc start
INFO Checking if running as non-root
INFO Checking if oc binary is cached
INFO Checking if Virtualization is enabled
INFO Checking if KVM is enabled
INFO Checking if libvirt is installed
INFO Checking if user is part of libvirt group
INFO Checking if libvirt is enabled
INFO Checking if libvirt daemon is running
INFO Checking if crc-driver-libvirt is installed
INFO Checking if libvirt ‘crc’ network is available
INFO Checking if libvirt ‘crc’ network is active
INFO Checking if NetworkManager is installed
INFO Checking if NetworkManager service is running
INFO Checking if /etc/NetworkManager/conf.d/crc-nm-dnsmasq.conf exists
INFO Checking if /etc/NetworkManager/dnsmasq.d/crc.conf exists
INFO Starting stopped VM …
INFO Verifying validity of the cluster certificates …
INFO Check internal and public dns query …
INFO Starting OpenShift cluster … [waiting 3m]
INFO
INFO To access the cluster, first set up your environment by following ‘crc oc-env’ instructions
INFO Then you can access it by running ‘oc login -u developer -p developer https://api.crc.testing:6443'
INFO To login as an admin, username is ‘kubeadmin’ and password is XXXXXXXXXXXXXXXXXXXXXXX
INFO
INFO These credentials can also be used to access the OpenShift web console at https://console-openshift-console.apps-crc.testing
CodeReady Containers instance is running

Congratulations! You are ready to code!

Please follow the navigation links.

Navigate to next exercise


Compatibility

The Java code in the repositories is compatible with Java11.


License

This code is dedicated to the public domain to the maximum extent permitted by applicable law, pursuant to CC0.

About

This repository contains the work related to Helm3 Openshift workshop.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published