-
Notifications
You must be signed in to change notification settings - Fork 712
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
Have probe query kube dns to find the app. #1433
Conversation
Have tested with following change to the probe yaml, works well: diff --git a/scope-probe-ds.yaml b/scope-probe-ds.yaml
index 5c23180..7b4c835 100644
--- a/scope-probe-ds.yaml
+++ b/scope-probe-ds.yaml
@@ -28,19 +28,7 @@ spec:
- --probe.docker=true
- --probe.kubernetes=true
- --probe.weave.addr=
- # We cannot refer to the Scope App with its Kubernetes Service
- # DNS name (weave-scope-app) directly because Docker doesn't
- # allow customizing the DNS servers (the Kubernetes DNS add-on
- # server in this case) of a container when it runs in the
- # host's network namespace (see
- # https://github.com/docker/docker/issues/10384#issuecomment-72069550
- # ). Instead, we use variable expansion on its service
- # environment variables.
- #
- # NOTE: Unfortunately this imposes a specific creation
- # ordering since the Scope App Service needs to be created first for
- # the service environment variables below to be accesible.
- - "$(WEAVE_SCOPE_APP_SERVICE_HOST):$(WEAVE_SCOPE_APP_SERVICE_PORT)"
+ - weave-scope-app.default.svc.cluster.local:4040
securityContext:
privileged: true
resources: |
Did you also move the probe to I think it would be cleaner to do something like diff --git a/scope-probe-ds.yaml b/scope-probe-ds.yaml
index 5c23180..7b4c835 100644
--- a/scope-probe-ds.yaml
+++ b/scope-probe-ds.yaml
@@ -28,19 +28,7 @@ spec:
- --probe.docker=true
- --probe.kubernetes=true
- --probe.weave.addr=
- # We cannot refer to the Scope App with its Kubernetes Service
- # DNS name (weave-scope-app) directly because Docker doesn't
- # allow customizing the DNS servers (the Kubernetes DNS add-on
- # server in this case) of a container when it runs in the
- # host's network namespace (see
- # https://github.com/docker/docker/issues/10384#issuecomment-72069550
- # ). Instead, we use variable expansion on its service
- # environment variables.
- #
- # NOTE: Unfortunately this imposes a specific creation
- # ordering since the Scope App Service needs to be created first for
- # the service environment variables below to be accesible.
- - "$(WEAVE_SCOPE_APP_SERVICE_HOST):$(WEAVE_SCOPE_APP_SERVICE_PORT)"
+ - --probe.resolver "$(KUBE_DNS_SERVICE_HOST)"
+ - weave-scope-app.default.svc.cluster.local:4040
securityContext:
privileged: true
resources: and implement |
As a matter of fact, I did (a couple of days ago). I can add a resolver flag if you like. |
Okay I don't understand why this doesn't work any more: Looking up entries in skydns from the app seems to work:
But looking up entries from the probe doesn't:
I don't think its a iptables / kube proxy thing, as the probe can still talk to the app by service IP address. |
Actually ignore me, thats alpine
If I change resolve.conf to look at the skydns virtual IP it works:
|
@2opremio PTAL, works now |
LGTM |
Tests are failing though |
Fixes #1373