Service discovery for outside of docker swarmDocker Swarm installation issuesIn a container cluster like Kubernetes or Docker 1.12 Swarm, how do you resolve with external DNS to the good container on the good host?Docker swarm and volumesConfiguring Azure Container Service with Docker Swarm for SSLDocker Swarm FailoverArchitecting a Docker Swarm with persistent storageControl periodic maintenance of services in a docker swarmHowto use a docker/swarm secret value as an environment variable in “docker service create”?Docker Swarm mesh ports limit only to worker nodes?Docker Network: Public IP for Swarm Scope
resoldering copper waste pipe
Passport stamps art, can it be done?
Is there a need for better software for writers?
Why is there a cap on 401k contributions?
How to get MAX value using SOQL when there are more than 50,000 rows
how to find out if there's files in a folder and exit accordingly (in KSH)
Which types of fruit can I give to my dog?
Program for finding longest run of zeros from a list of 100 random integers which are either 0 or 1
Renting a house to a graduate student in my department
Libertine font numbers have a different height than text
What are my options legally if NYC company is not paying salary?
Why do 3D printers have only one limit switch?
What dice to use in a game that revolves around triangles?
Why did they wait for Quill to arrive?
Add EnvironmentPurpose to existing TtmCdTopologyType
What is the radius of the circle in this problem?
Do Monks gain the 9th level Unarmored Movement benefit when wearing armor or using a shield?
Origins of the "array like" strings in BASIC
Was Mohammed the most popular first name for boys born in Berlin in 2018?
What is the Ancient One's mistake?
Add Columns to .csv from Multiple Files
Using wilcox.test() and t.test() in R yielding different p-values
Identity of a supposed anonymous referee revealed through "Description" of the report
Pre-1993 comic in which Wolverine's claws were turned to rubber?
Service discovery for outside of docker swarm
Docker Swarm installation issuesIn a container cluster like Kubernetes or Docker 1.12 Swarm, how do you resolve with external DNS to the good container on the good host?Docker swarm and volumesConfiguring Azure Container Service with Docker Swarm for SSLDocker Swarm FailoverArchitecting a Docker Swarm with persistent storageControl periodic maintenance of services in a docker swarmHowto use a docker/swarm secret value as an environment variable in “docker service create”?Docker Swarm mesh ports limit only to worker nodes?Docker Network: Public IP for Swarm Scope
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
The embedded DNS server inside of Docker SWARM works well for communication within SWARM. But it seems it is impossible for clients outside of SWARM to discover the deployed services within SWARM unless manually notifying the outside world.
Is it possible to leverage CoreDNS like it is used by Kubernetes to fulfill this purpose?
I am not talking about the old port bounding of container to host IP. The scenario is about containers themselves can have routable IP addresses.
domain-name-system docker-swarm
add a comment |
The embedded DNS server inside of Docker SWARM works well for communication within SWARM. But it seems it is impossible for clients outside of SWARM to discover the deployed services within SWARM unless manually notifying the outside world.
Is it possible to leverage CoreDNS like it is used by Kubernetes to fulfill this purpose?
I am not talking about the old port bounding of container to host IP. The scenario is about containers themselves can have routable IP addresses.
domain-name-system docker-swarm
add a comment |
The embedded DNS server inside of Docker SWARM works well for communication within SWARM. But it seems it is impossible for clients outside of SWARM to discover the deployed services within SWARM unless manually notifying the outside world.
Is it possible to leverage CoreDNS like it is used by Kubernetes to fulfill this purpose?
I am not talking about the old port bounding of container to host IP. The scenario is about containers themselves can have routable IP addresses.
domain-name-system docker-swarm
The embedded DNS server inside of Docker SWARM works well for communication within SWARM. But it seems it is impossible for clients outside of SWARM to discover the deployed services within SWARM unless manually notifying the outside world.
Is it possible to leverage CoreDNS like it is used by Kubernetes to fulfill this purpose?
I am not talking about the old port bounding of container to host IP. The scenario is about containers themselves can have routable IP addresses.
domain-name-system docker-swarm
domain-name-system docker-swarm
asked Jan 2 '18 at 16:50
robertrobert
183
183
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can do this with CoreDNS and Traefik. Traefik will act as a load balancer and allow you to route to the containers based on container name. CoreDNS will take *.yourdomain.com and route it to traefik.
A good example is shown here:
https://dklesev.github.io/devenv/
The given URL presents a rather complicated use case but it seems solve the problem though it may need more experiments to see if that can be used in production. I will try that later, thanks.
– robert
May 2 at 17:50
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f890379%2fservice-discovery-for-outside-of-docker-swarm%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can do this with CoreDNS and Traefik. Traefik will act as a load balancer and allow you to route to the containers based on container name. CoreDNS will take *.yourdomain.com and route it to traefik.
A good example is shown here:
https://dklesev.github.io/devenv/
The given URL presents a rather complicated use case but it seems solve the problem though it may need more experiments to see if that can be used in production. I will try that later, thanks.
– robert
May 2 at 17:50
add a comment |
You can do this with CoreDNS and Traefik. Traefik will act as a load balancer and allow you to route to the containers based on container name. CoreDNS will take *.yourdomain.com and route it to traefik.
A good example is shown here:
https://dklesev.github.io/devenv/
The given URL presents a rather complicated use case but it seems solve the problem though it may need more experiments to see if that can be used in production. I will try that later, thanks.
– robert
May 2 at 17:50
add a comment |
You can do this with CoreDNS and Traefik. Traefik will act as a load balancer and allow you to route to the containers based on container name. CoreDNS will take *.yourdomain.com and route it to traefik.
A good example is shown here:
https://dklesev.github.io/devenv/
You can do this with CoreDNS and Traefik. Traefik will act as a load balancer and allow you to route to the containers based on container name. CoreDNS will take *.yourdomain.com and route it to traefik.
A good example is shown here:
https://dklesev.github.io/devenv/
answered Apr 30 at 0:24
NoUserExceptionNoUserException
1161
1161
The given URL presents a rather complicated use case but it seems solve the problem though it may need more experiments to see if that can be used in production. I will try that later, thanks.
– robert
May 2 at 17:50
add a comment |
The given URL presents a rather complicated use case but it seems solve the problem though it may need more experiments to see if that can be used in production. I will try that later, thanks.
– robert
May 2 at 17:50
The given URL presents a rather complicated use case but it seems solve the problem though it may need more experiments to see if that can be used in production. I will try that later, thanks.
– robert
May 2 at 17:50
The given URL presents a rather complicated use case but it seems solve the problem though it may need more experiments to see if that can be used in production. I will try that later, thanks.
– robert
May 2 at 17:50
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f890379%2fservice-discovery-for-outside-of-docker-swarm%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown