New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Quick implementation of container IP records #226
Conversation
sttts
commented
Aug 10, 2015
- SRV records according to Add container ip label MesosContainerizer.NetworkSettings.IPAddress and remove _container prefix #197 (comment) and https://docs.google.com/spreadsheets/d/1fZcaUP2Y-MQluMl-JP_PDB1Qlg6Ad36OdSQKBj_zlu4/edit#gid=0
- remove _container prefix and add slave.mesos A records instead for the non-container IP.
/cc @tsenart for early review |
target := canonical + tail + ":" + strconv.Itoa(port.Number) | ||
|
||
// use protocol if defined, fallback to tcp+udp | ||
if port.Protocol != "" { |
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.
should we attempt to sanitize the port.Protocol
label before splicing it in?
The old validation code expanded resolvers, then checked for duplicates. This reverts commit 21c43d0.
@jdef: Why did you add the WIP label? Planning to do some work on it? |
@tsenart yes, I'm going to update docs for A and SRV records |
👍 |
HTTPOn: true, | ||
ExternalOn: true, | ||
RecurseOn: true, | ||
IPSources: []string{"docker", "mesos", "host"}, |
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.
the default should not include "docker" since Docker, by default, uses IPs that are not cluster routable
Quick implementation of container IP records