Skip to content

mdpatankar/kubernetes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advance Application Modernization Workshop

Day 1

0. Register on IBM Cloud

https://ibm.biz/BdzPaf

After successful registration Login into your account.

1. Convert the IBM Cloud Lite account to Trial account

You will be provided with PROMO Code. Account -- Apply Promo Code

For instructions on how to apply the codes, review this page IBM Cloud Sign up and PROMO Code

2. Provision a Kubernetes Cluster on IBM Cloud

From Dashboard menu, select Kubernetes.

Markdown Monster icon

After that click on "Create Cluster", you will be asked following details to enter. a - Select Free Cluster b - Give a cluster name c - Select Geography as North America and Select Dallas with default resource group

Markdown Monster icon

Once the cluster is provisioned, Cluster will be shown in Normal State.

Markdown Monster icon

3. Access Kubernetes Cluster using Web Terminal

Once the cluster is provisioned, the kubernetes client CLI kubectl needs to be configured to talk to the provisioned cluster.

This can also be done using your local desktops. You will have to install IBM Cloud Plugin Tools for doing that.

For this lab, you will be using Web Terminal, to work with your cluster. So installations on client machines is not required. This feature is in beta currently.

a. Access the Cluster, and go to Cluster details Markdown Monster icon

b. Click on "Web terminal(beta) " Markdown Monster icon

c. Web based terminal opens at the bottom of the browser.
Markdown Monster icon

Once your open the Web based terminal, you are ready to explore Kubernetes Objects.

Lab

Pod: Managing pods with kubectl

Creating the pod manually.

You will be creating Pod manually using YAML File.

	 kubia-manual.yaml
	 
	 kubectl apply -f  kubia-manual.yaml
	 

Please use file from this repository

ReplicaSet:

Creating ReplicaSet.

This replicaset will create 3 pods of kubia automatically.

  kubia-rs.yaml
 
  kubectl apply -f kubia-rs.yaml
 

This is not manual creation of Pods.

You will use kubia-rs.yaml file to Create ReplicaSet

Service:

For creating Service, you will be using kubia-svc.yaml file.

	 kubia-svc.yaml
	 	
	 kubectl apply -f kubia-svc.yaml

This will create a Kubia Service. This will internally use the Pods for loadbalancing this service.

To test how this calls the service

You will have to get service

$ kubectl get svc
NAME         CLUSTER-IP       EXTERNAL-IP   PORT(S)   AGE
kubernetes   10.111.240.1     <none>        443/TCP   30d
kubia        10.111.249.153   <none>        80/TCP    6m        1

Note the IP address ( Cluster IP) of service - 10.111.249.153

$ kubectl get pods

NAME          READY   STATUS    RESTARTS   AGE
kubia-5l4q5   1/1     Running   0          18m
kubia-8k645   1/1     Running   0          18m
kubia-rvm48   1/1     Running   0          18m

Now lets try to test using curl

$ kubectl exec kubia-5l4q5 -- curl -s http://10.111.249.153
You've hit kubia-5l4q5

If you go on running this commands, you will observe it hits different pods,

Congratulations!!!!, You have successfully completed the lab

Day 2

IBM Cloud Private

Reserve IBM Cloud Instance using your IBM registered https://www.ibm.com/cloud/garage/dte/tutorial/ibm-cloud-private-hosted-trial

You will receive email with Skytap instance to explore.

For Lab 1 :

IBM Cloud Private : Treasure Hunt , Artefacts on IBM Cloud Artefacts

Refer the document from this repo. CGIDay2_Lab.docx

IBM Cloud Transformation Advisor

Documentation available on

https://transformationadvisor.github.io/doc/

For more resources on garage

Migrate traditional WebSphere apps to WebSphere Liberty on IBM Cloud Private by using Kubernetes

https://www.ibm.com/cloud/garage/content/course/websphere-on-cloud-private/0

IBM MultiCloudManager

https://www.ibm.com/cloud/garage/dte/tutorial/multi-cluster-application-management

For Lab 2 :

Debug and log your Kubernetes applications

https://developer.ibm.com/tutorials/debug-and-log-your-kubernetes-app/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%