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 Yaml file)

Hello,

Before learning how to deploy containerized image(s) to single node kubernetes cluster, you should go through below two articles explained.

1) Build a docker image and push to docker hub : click here
2) Learn how to deploy the container to kubernetes single node cluster using commands  : Click here

Learn how to deploy the container to kubernetes using yaml file :
Follow below list of commands explained



Docker to kubernetes
Yaml file
Deployment through yaml file
.\kubectl.exe create -f sadakarkubernetes2.yaml

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: sadakarkubernetes2
spec:
  replicas: 3
  template:
    metadata:
      labels:
        app: get-started
    spec:
      containers:
        -
          image: "sadakar/get-started:part2"
          name: sadakar
          ports:
            -
              containerPort: 80
Test yaml code from
Expose the deployment as a service
.\kubectl.exe expose deployment sadakarkubernetes2 --type=NodePort
Launch the service
.\minikube.exe service sadakarkubernetes2


URL of the service
.\minikube.exe service --url=true sadakarkubernetes2


kubernetes dashboard: 


 output:

Thank you
Sadakar Pochampalli

2 comments: