Pentaho Tools :

Pentaho C-Tools(CDE,CDF,CDA),Pentaho CE & EE Server,OLAP-Cubes,Analysis using Pivot4J, Saiku Analytics, Saiku Reporting, Ad-hoc Reporting using Interactive Reporting Tool,Dashboards,Reports using PRD, PDD,Data Integration using Kettle ETL,Data Mining usign WEKA,Integration of Servers with Databases,Mobile/iPad compatible Dashboards using Bootstrap Css,Drilldown dashboards,Interactive Dashboards

Tuesday 11 July 2017

Kubernetes : Deploying and Scaling a Container in Kubernetes (Using Commands)

Hi,

This post will talk about how to deploy containers from Docker hub into Single Node kubernetes cluster.

To follow this example, you must read the example explained here ( Building and Pushing images to Docker hub)

We use the same container deployed to docker hub in deploying container in kubernetes single node cluster.


Docker to kubernetes

Kubernetes dashboard

minikube dashboard
Deploying image from docker
.\kubectl.exe  run sadakarkubernetes --image=sadakar/get-started:part1 --port=80

NOTE : 
1) 80 is the container(image) port number
2) No empty spaces before = sign
Expose the app as service
.\kubectl.exe expose deployment sadakarkubernetes --type=NodePort
Launch the service
.\minikube.exe service sadakarkubernetes

.\minikube.exe service --url=true sadakarkubernetes
http://192.168.99.100:31281
Scaling the deployment
.\kubectl.exe scale --replicas=2 deployment/sadakarkubernetes


Kubernetes Dashboard : 

Application Opened from Kubernetes: 
Thank you
Sadakar 




1 comment:

  1. I would like to thank you for the efforts you have made in writing this article, Its good and Informative.
    kubernetes online training

    ReplyDelete