Win a copy of Head First Android this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Question to Deepak: Kubernetes Microservices with Docker

 
Author
Posts: 93
14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@Deepak: The book looks interesting and is on topics that are buzzwords today - all the best for the success of your book!

1. Does your book also covers topics such as scheduling, self-healing, and storage orchestration in Kubernetes?

2. Can I run Kubernetes locally in my laptop using Docker? If so, how (or does your book cover that)?

3. Since Kubernetes is from Google, how does it relate to Google Container Engine (is Kubernetes optimized to use with GCE)?
 
Author
Posts: 64
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The book looks interesting and is on topics that are buzzwords today - all the best for the success of your book!

Thanks.

1. Does your book also covers topics such as scheduling, self-healing, and storage orchestration in Kubernetes?

Not scheduling. But self-healing in chapter 6 is discussed by simulating a Pod failure by deleting the Pod. And, storage using volumes is covered in Chapters 7 and 8. Chapter 7 Introduces volumes and makes use of an emptyDir volume. Chapter 8 Makes use of another type of volume, the
hostPath volume.


2. Can I run Kubernetes locally in my laptop using Docker? If so, how (or
does your book cover that)?


Yes, Kubernetes could be run on a local machine, a laptop, but it would not be
able to benefit fully from the supported features. Kubernetes is designed to be
run in a cloud environment with a multi-node Master/Workers architecture.
The book does not discuss using Kubernetes on a local machine, but refer
http://kubernetes.io/docs/getting-started-guides/#local-machine-solutions

3. Since Kubernetes is from Google, how does it relate to Google Container
Engine (is Kubernetes optimized to use with GCE)?


Being from Google, GCE runs on Kubernetes. GCE provides an optimized
hosted solution for Kubernetes.

Which of the 3 to use, local, hosted or cloud? Kubernetes does clarify on the
issue:

"If you just want to “kick the tires” on Kubernetes, we recommend the local
Docker-based solution.The local Docker-based solution is one of several
Local cluster solutions that are quick to set up, but are limited to running on
one machine.

When you are ready to scale up to more machines and higher availability, a
Hosted solution is the easiest to create and maintain.

Turn-key cloud solutions require only a few commands to create and cover a
wider range of cloud providers."
http://kubernetes.io/docs/getting-started-guides/
 
Deepak Vohra
Author
Posts: 64
10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
2. Can I run Kubernetes locally in my laptop using Docker? If so, how (or
does your book cover that)?


Should add, Chapter 1 discusses installing Kubernetes on a single node with Docker. But, Kubernetes is not installed on a local machine per se; instead is installed on an Amazon EC2 instance running Ubuntu. A single instance is both the Master/Worker. If a laptop supports one of the platforms supported by Docker (https://docs.docker.com/engine/installation/) Kubernetes could very well be installed on a laptop using the Chapter 1 explanation.

Chapter 14 is on installing multi-node Kubernetes.
 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am following the tutorial by Thibault's blog showing how to locally setup kubernetes with a nginx service in which the URL below links to the tutorial.
http://tdeheurles.github.io/how-to-run-local-kubernetes/

The issue I am having trouble with is the nginx service. The nginx service should get the IPv4 address of my Wireless LAN adapter. Essentially, I want a bridged connection that will get the same IP address displayed for the Wireless LAN adapter for the nginx service.
For example, if I were to get a IP of 8.22.108.49 on my personal computers Wireless LAN adapters interface; the IP of the service should be the same IP.



I know in the Google cloud you can issue a --expose-ip= command and list a external IP, but no such commands are available to the local docker version of kubernetes.

Any help would be much appreciated.
I thought I would ask since many here seem to know details pertaining such a issue.
Thank you.

Sean
 
Deepak Vohra
Author
Posts: 64
10
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The kubectl expose command provides a --external-ip=external-ip-of-service option to specify an external ip not managed by Kubernetes.

"--external-ip="": Additional external IP address (not managed by Kubernetes) to accept for the service. If this IP is routed to a node, the service can be accessed by this IP in addition to its generated service IP."

With LoadBalance type of service an IP may be assigned with
--load-balancer-ip="": IP to assign to to the Load Balancer.

http://kubernetes.io/docs/user-guide/kubectl/kubectl_expose/
 
Sean Sanders
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Deepak Vohra wrote:The kubectl expose command provides a --external-ip=external-ip-of-service option to specify an external ip not managed by Kubernetes.

"--external-ip="": Additional external IP address (not managed by Kubernetes) to accept for the service. If this IP is routed to a node, the service can be accessed by this IP in addition to its generated service IP."

With LoadBalance type of service an IP may be assigned with
--load-balancer-ip="": IP to assign to to the Load Balancer.

http://kubernetes.io/docs/user-guide/kubectl/kubectl_expose/



Deepak Vohra

Thank you for the reply.

I wasn't even thinking about the --external-ip for some reason.
Much appreciated.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic