DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Software Design and Architecture
  3. Cloud Architecture
  4. Getting Started With K8s

Getting Started With K8s

This series on Kubernetes kicks off with some basic K8s setup, configuration, and commands to get your container orchestration working.

Anirban Sen Chowdhary user avatar by
Anirban Sen Chowdhary
·
Oct. 03, 17 · Tutorial
Like (2)
Save
Tweet
Share
5.98K Views

Join the DZone community and get the full member experience.

Join For Free

Kubernetes, also known as K8s, is a well-known container management solution. The main advantage of Kubernetes that it is open source and production ready. The other advantage is that when there are multiple instances or deployments, they become very difficult to manage manually and require great tools like Kubernetes.

For those who are new to Kubernetes, I will be writing a series of posts as part of the Project Calico blog.

This blog will demonstrate an easy way to run Kubernetes on a Windows machine.
To start with, we need Minikube, which is a tool that makes it easy to run Kubernetes locally.

The very first thing we need to do is to download minikube-windows-amd64 from GitHub. Then, it needs to be renamed to minikube.exe.

We also need kubectl.exe from here, which controls the Kubernetes cluster manager and puts it on the same path.

Getting Started

So, we are ready to start. We will get into the command prompt and run: minikube start. Then, we should get the following:

Image title

So Kubernetes is ready to go on our system!

We can now run the following command to test the status — minikube status — and should get the following:

Image title

Which shows that Minikube is ready and running, and also that kubectl is configured!

If we run the kubectl cluster-info command, we will get the information of our cluster:

Image title

Then we run the kubectl version command to get the client-server version of kubectl.

Image title

We can get the IP address of the cluster using the IP command, minikube ip:

Image title

We can start the dashboard, which is a web console, using minikube dashboard as follows:

Image title

The dashboard will open as follows:

Image title

If we just need the dashboard URL without starting it, we can use minikube dashboard --url=true , which will display the URL:

Image title

We can check the current deployment using kubectl deployments, which will display No resource found, as there is no deployment:

Image title

Let's create a new deployment from the console dashboard by clicking create on the top right:

Image title

We will fill the App-name as test-app and pull a Docker image from DockerHub. This time, let's take a Mule docker image and pull it from there:

Image title

If we check the dashboard, we can see the image is deployed and the Mule runtime server has started:

Image title

We can, at last, use kubectl delete deployments to delete a deployment and minikube stop to stop the minikube in the system.

Thus, you can see it's very easy to use Kubernetes to manage your containers. There are lots of other things that we can do with it, which we will discuss in future articles.

Kubernetes

Published at DZone with permission of Anirban Sen Chowdhary, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • What Is Advertised Kafka Address?
  • Testing Level Dynamics: Achieving Confidence From Testing
  • What Is JavaScript Slice? Practical Examples and Guide
  • Distributed Tracing: A Full Guide

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: