mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 01:31:17 +00:00
Merge pull request #3743 from weaveworks/more-pause
kubernetes: detect more 'pause' containers
This commit is contained in:
@@ -245,6 +245,10 @@ func IsApplication(n report.Node) bool {
|
||||
if _, ok := systemImagePrefixes[imagePrefix]; ok || report.IsPauseImageName(imagePrefix) {
|
||||
return false
|
||||
}
|
||||
k8sContainerType, _ := n.Latest.Lookup(report.DockerLabelPrefix + "io.kubernetes.docker.type")
|
||||
if k8sContainerType == "podsandbox" { // another way to detect "pause container"
|
||||
return false
|
||||
}
|
||||
roleLabel, _ := n.Latest.Lookup(report.DockerLabelPrefix + "works.weave.role")
|
||||
if roleLabel == "system" {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user