Skip to content
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

Use Kubernetes node name to filter pods if possible #2556

Merged
merged 2 commits into from
Jul 14, 2017

Conversation

bboreham
Copy link
Collaborator

@bboreham bboreham commented Jun 1, 2017

We can get the node name via the downward api, if the Scope probe is run as a pod. This needs to be done in the yaml.

@2opremio
Copy link
Contributor

2opremio commented Jun 2, 2017

To be effective, this requires an associated change in launch-generator for the next release of Scope (CC @errordeveloper )

reporter := &Reporter{
client: client,
pipes: pipes,
probeID: probeID,
probe: probe,
hostID: hostID,
handlerRegistry: handlerRegistry,
nodeName: nodeName,

This comment was marked as abuse.

This comment was marked as abuse.

This comment was marked as abuse.

@2opremio
Copy link
Contributor

2opremio commented Jun 5, 2017

@bboreham Can you please fix the tests?

@bboreham bboreham force-pushed the local-pods-via-node-name branch from 5e8c0a0 to 88ca981 Compare July 13, 2017 16:24
kubeletPort uint
}

// NewReporter makes a new Reporter
func NewReporter(client Client, pipes controls.PipeClient, probeID string, hostID string, probe *probe.Probe, handlerRegistry *controls.HandlerRegistry, kubeletPort uint) *Reporter {
func NewReporter(client Client, pipes controls.PipeClient, probeID string, hostID string, probe *probe.Probe, handlerRegistry *controls.HandlerRegistry, nodeName string, kubeletPort uint) *Reporter {

This comment was marked as abuse.

This comment was marked as abuse.

@bboreham bboreham merged commit 8a83a59 into master Jul 14, 2017
@dlespiau dlespiau deleted the local-pods-via-node-name branch November 2, 2017 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants