-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite guestbook example to use kube-dns instead of host:port
This fixes #5091
- Loading branch information
Showing
8 changed files
with
47 additions
and
65 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"id": "redisslave", | ||
"id": "redis-slave", | ||
"kind": "Service", | ||
"apiVersion": "v1beta1", | ||
"port": 6379, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4679a37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very interesting, but you're just breaking a lot of getting-started guides like Atomic, which don't use DNS yet.
4679a37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you point me to the getting-started Atomic guide? I can't see any.
I see the problem, but there is no better solution (or at least I can't see any). Did you have a chance to taka a look into #5091?
4679a37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://www.projectatomic.io/docs/gettingstarted/
4679a37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the link. How big is an effort to start supporting DNS in Atomic? We have kube-dns service which can be probably run on Atomic.
4679a37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not related to that project. Just mentioned it as an example and because someone was complaining about it in #google-containers @ irc.freenode.net.
4679a37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. Thanks!
4679a37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can go ahead and add some kube-dns details to the Atomic getting started guide, but I'm looking through the various different guides in the repository and don't see any that have details on setting up kube-dns as a prerequisite.
Can we add what a working "kubernetes cluster" in Step Zero consist of for this example? This could help make sure that the cluster based getting started guides can consistently run the guestbook.
4679a37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erictune could you please answer for @nzwulfin's question?
4679a37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@piosz how did you enable dns in this example? As I see you switched to v2 docker images, but not sure where kube-dns is configured.
4679a37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kube-dns is a service (see https://github.com/GoogleCloudPlatform/kubernetes/tree/master/cluster/addons/dns). It is enabled by default for example on GCE. I changed this example to use dns instead of HOST, PORT env vars, for example instead of using REDIS_MASTER_SERVICE_HOST as an address of redis master, I use just redis-master which will be resolved to the redis host by kube-dns.
4679a37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as i understood, guestbook is a generic example. Is kube-dns enabled by default on amazon, openstack, etc?
4679a37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know, you can ask on IRC channel.