Skip to content

Weave Scope does not record the pod topology when there is only job(not cronjob) in kubernetes #3864

Open
@shabicheng

Description

@shabicheng

What you expected to happen?

When there is only a job in my kubernetes cluster, Weave Scope does not show the topology of the pod created by this job.

I have debugged the code and found that Scope only calculates the topology when cronJob exists. And looks like when there are more than one cronJob, job selector will register many times.

https://github.com/weaveworks/scope/blob/master/probe/kubernetes/reporter.go#L664

What happened?

How to reproduce it?

Anything else we need to know?

Versions:

$ scope version
$ docker version
$ uname -a
$ kubectl version

Logs:

$ docker logs weavescope

or, if using Kubernetes:

$ kubectl logs <weave-scope-pod> -n <namespace> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions