Workshop 1- Create a free Kubernetes cluster with one worker node and deploy your first app to IBM Cloud.

Pre-requisites

IBM Cloud Account- https://ibm.biz/BdzbAW

To create a free Kubernetes cluster:

  1. In the IBM Cloud Catalog, Create a Continuous Delivery service

  2. In the IBM Cloud Catalog, select Kubernetes Cluster and click Create. A cluster configuration page opens. By default, Free cluster is selected.

  3. Give your cluster a unique name and select Geography --> North America && Metro --> Dallas.

  4. Click Create Cluster. A worker pool is created that contains one worker node.

The worker node can take a few minutes to provision, but you can see the progress in the Worker nodes tab. When the status reaches Ready, you can start working with your cluster!

  1. Click on DevOps and click on Create a Toolchain

DevOps

  1. Click on Develop a Kubernetes app

DevOps

  1. In the redirected page, select Dallas as the region for Toolchain and in Delivery pipeline, click CREATE next to IBM Cloud API Key and click on CREATE the toolchain.

DevOps

DevOps

  1. Click Delivery Pipeline and you can see the BUILD, CONTAINERIZE and DEPLOY stage.

DevOps

DevOps

  1. Click on Deploy to Kubernetes within DEPLOY stage.

DevOps

DevOps

  1. VIEW the application in the URL mentioned near VIEW THE APPLICATION AT

NEXT STEPS:

Let's change the code in app.js by opening ECLIPSE ORION WEB IDE and then push the changes through DELIVERY PIPELINE.

Workshop 2- Build cloud-native apps faster for Kubernetes with Kabanero

Pre-requisites

  1. Docker Installation- https://docs.docker.com/get-started/
  2. Appsody Installation- https://appsody.dev/docs/getting-started/installation

Installation Steps (if pre-requisites isn't working) :

1. Sign up on Docker

https://hub.docker.com/

2. Get the environment

https://www.katacoda.com/courses/ubuntu/playground1804

Sign in using your Gmail id.

3. Check the OS

$ cat /etc/os-release

output should be

NAME="Ubuntu"
VERSION="18.04.2 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.2 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic

4. Install Appsody

Get installable

$ wget https://github.com/appsody/appsody/releases/download/0.2.8/appsody_0.2.8_amd64.deb

Install Appsody

$ sudo apt install ./appsody_0.2.8_amd64.deb

Steps

  1. First, choose a development stack. To see all the available stacks, run:

$ appsody list

  1. Create a fully functional Appsody project using the nodejs-express stack:

     $ mkdir my-project
     $ cd my-project
     $ appsody init nodejs-express
    
  2. Start the development container:

$ appsody run

Great! Now the project is running in a docker container, and the container is linked to the project source code on your local system. For nodejs-express, navigate to http://localhost:3000 to see the output.

Now let's try changing the code!

Edit the file app.js to output something other than "Hello from Appsody!".

vi app.js

When you save the file, Appsody picks up the change and automatically updates the container. Refresh http://localhost:3000 to see the new message!

You now have a containerized application that's ready to deploy to a suitable runtime infrastructure such as a cloud platform that hosts a Kubernetes cluster.

Refer to deploying your app directly to a Kubernetes cluster for more information on deploying to IBM Cloud Kubernetes cluster.