Over a million developers have joined DZone.

Installing Kubernetes in One Command With Drink in Hand

DZone's Guide to

Installing Kubernetes in One Command With Drink in Hand

Stuck at the airport? Grab a bev and settle in to see how you can get Kubernetes up and running in one simple command.

· Cloud Zone
Free Resource

MongoDB Atlas is a database as a service that makes it easy to deploy, manage, and scale MongoDB. So you can focus on innovation, not operations. Brought to you in partnership with MongoDB.

Yesterday, I was on my way to the USA to attend and speak at two events in Atlanta and Minneapolis that Red Hat is hosting.

My flight was delayed three and a half hours, and I was given a voucher with the value of 79 DKK, which I could only spend in certain shops and restaurants. So I asked myself, "Is it too early for a beer?" It was 10:30 a.m.

The answer? No. It's never too early when you are in an airport.

Image title

I worked a bit on my slides, and when I was done with that, I thought, 'Could I install Kubernetes using a single command?' I was drinking my second order — a whiskey sour.

So I deleted Kubernetes, fabric8, and whatever else I had on my laptop and got myself prepared. Then, I pressed the record button. 

After 18 minutes of recording, I found my answer. Yes, you can. 

Image title

Link to video.

As I write this, I just arrived in Atlanta. I have uploaded the full video recording, which you can take a look at. You may want to fast forward about 4-5 minutes, where binaries and Docker are downloading from Docker Hub. Yeah, I guess I was pushing the boundaries of what public Wi-Fi can be used for in an airport. I would assume they had some rate limiting or something. But nevertheless, it works, and you are free to enjoy a beverage in the meantime. That is a pretty good deal.

In case you wonder. The Maven command...

 mvn io.fabric8:fabric8-maven-plugin:3.1.62:cluster-start 

...can be run in any directory. There is no pom.xml file in the directory where I run the command.

You can find more information in the fabric8 Maven documentation. And if you haven't read James Strachan's recent, excellent blog about the busy Java developer, then I highly recommend to take a look at that, too.

P.S. I did make another spelling mistake. Did you spot it? It was in the text box in the beginning, where I typed Kuberentes instead of Kubernetes.

Related Refcard:

MongoDB Atlas is the best way to run MongoDB on AWS — highly secure by default, highly available, and fully elastic. Get started free. Brought to you in partnership with MongoDB.

kubernetes ,cloud ,maven ,fabric 8

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}