Ajeet Raina Docker Captain, ARM Innovator & Docker Bangalore Community Leader.

2-minutes to Kubernetes Cluster on Docker for Mac 18.01 using Swarm CLI

1 min read

Docker for Mac 18.01.0 CE is available for the general public. It holds experimental Kubernetes release running on Linux Kernel 4.9.75, Docker Compose 1.180 and Docker Machine 0.13.0. It is available only under Edge Release. Please note that this feature is still NOT available under Stable Release branch. This release brought a major fixes around insecure registry, VPNKit port,  DNS timeout issues and many more which you can refer under Release Notes section.

[Updated – 29/01/2018 – Docker Inc. introduced Kubernetes context selector UI in the recent Docker for Mac 18.02 RC1 release. If you have Minikube already running on the same system, you can switch the context in between Minikube & docker for Mac flawlessly. Refer this for more information]

 

 

In my previous blog, I talked about how to build Kubernetes Cluster in 3 minutes using Kubectl tool which comes by default with this release. But what if you are a die-hard fan of   Docker Swarm CLI like me, here is the good news – You can now use Swarm CLI to bring up Kubernetes Cluster. Under this post, I will show you how Swarm CLI can be used to bring up Kubernetes cluster in just 2 minutes.

 

Pre-requisite:

  • Docker for Mac 18.01.0 CE Edge Release
  • Enable Kubernetes under Preference > Kubernetes Tab
  • Select Checkbox under Show System Container

A Quick 2-minutes ASCIINEMA video:

Here is 2-minutes video which shows how to get started from Zero to NGINX web server setup. It initiate with 0 pods, 0 external service and 0 deployments in Kubernetes terminology. Under this video, we will use the familiar docker stack CLI to bring up K8s cluster and then cleaning up in no seconds.

[asciinema video=8lBZqBI3PWenBj6mSPzUd6i9Y]

Liked the video? You can refer this link for detailed instructions and further examples.

As I dig deeper into Kubernetes architecture, below links might be useful for anyone who want to learn Kubernetes concepts in detail.

Getting Started with Kubernetes Concepts & Architecture

Building Kubernetes Dashboard on Docker for Mac in 1 min

Demystifying Kubernetes Namespace

Did you find this blog helpful?  Feel free to share your experience. Get in touch @ajeetsraina.

If you are looking out for contribution/discussion, join me at Docker Community Slack Channel.

 

 

 

Have Queries? Join https://launchpass.com/collabnix

Ajeet Raina Docker Captain, ARM Innovator & Docker Bangalore Community Leader.

39 Replies to “2-minutes to Kubernetes Cluster on Docker for Mac 18.01…”

  1. What i do not understood is in fact how you’re not actually much more well-favored than you may be right now. You are so intelligent. You know thus significantly in the case of this topic, made me for my part believe it from so many varied angles. Its like men and women don’t seem to be involved until it is one thing to do with Lady gaga! Your personal stuffs outstanding. At all times handle it up!

  2. Hello! I could have sworn I’ve been to this blog before but after browsing through some of the post I realized it’s new to me. Anyways, I’m definitely happy I found it and I’ll be book-marking and checking back frequently!

  3. I’m still learning from you, as I’m trying to reach my goals. I absolutely liked reading everything that is posted on your site.Keep the stories coming. I enjoyed it!

  4. Hi, Neat post. There is a problem along with your web site in internet explorer, may test thisK IE nonetheless is the marketplace leader and a big component of people will omit your great writing because of this problem.

  5. What¦s Going down i am new to this, I stumbled upon this I have discovered It positively useful and it has helped me out loads. I hope to give a contribution & assist other users like its helped me. Good job.

  6. It is the best time to make a few plans for the longer term and it’s time to be happy. I’ve read this post and if I may I want to counsel you some fascinating issues or advice. Perhaps you could write subsequent articles relating to this article. I wish to read more issues approximately it!

  7. I believe this website contains some really fantastic info for everyone. “Philosophy triumphs easily over past evils and future evils but present evils triumph over it.” by La Rochefoucauld.

  8. I want to voice my passion for your kind-heartedness in support of people who really need help with this particular situation. Your real dedication to getting the solution all around ended up being extremely important and have really empowered somebody like me to achieve their aims. Your personal invaluable useful information signifies much a person like me and extremely more to my office colleagues. Warm regards; from each one of us.

  9. Hi, Neat post. There’s a problem together with your site in internet explorer, may check this?K IE nonetheless is the market leader and a good section of other people will omit your magnificent writing due to this problem.

  10. Thanks for any other informative blog. The place else may I get that kind of info written in such a perfect way? I’ve a undertaking that I’m simply now operating on, and I have been at the glance out for such information.

  11. Hello there! I know this is kinda off topic but I’d figured I’d ask. Would you be interested in trading links or maybe guest writing a blog post or vice-versa? My blog goes over a lot of the same topics as yours and I feel we could greatly benefit from each other. If you are interested feel free to send me an e-mail. I look forward to hearing from you! Great blog by the way!

  12. I’m impressed, I have to say. Really rarely do I encounter a weblog that’s each educative and entertaining, and let me tell you, you’ve hit the nail on the head. Your thought is outstanding; the problem is one thing that not enough people are speaking intelligently about. I’m very comfortable that I stumbled throughout this in my search for something regarding this.

  13. Hey There. I discovered your weblog the usage of msn. This is a really smartly written article. I will make sure to bookmark it and come back to learn extra of your useful information. Thanks for the post. I’ll definitely return.

  14. obviously like your website but you have to check the spelling on quite a few of your posts. Several of them are rife with spelling problems and I find it very bothersome to inform the reality however I¦ll surely come back again.

  15. I’m impressed, I have to say. Really rarely do I encounter a blog that’s each educative and entertaining, and let me inform you, you will have hit the nail on the head. Your idea is excellent; the problem is one thing that not sufficient persons are speaking intelligently about. I am very joyful that I stumbled across this in my seek for something relating to this.

  16. I was recommended this blog via my cousin. I’m no longer certain whether or not this post is written by him as nobody else recognize such certain approximately my problem. You are wonderful! Thank you!

  17. excellent issues altogether, you just received a new reader. What would you recommend about your submit that you made some days in the past? Any positive?

  18. Nice post. I learn something more difficult on different blogs everyday. It will at all times be stimulating to read content from different writers and apply a bit one thing from their store. I’d prefer to use some with the content material on my blog whether you don’t mind. Natually I’ll offer you a link in your internet blog. Thanks for sharing.

Leave a Reply

Your email address will not be published.