Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.
This repository was archived by the owner on May 12, 2021. It is now read-only.

Kata metrics broken in Kubernetes v1.14.0 + Containerd 1.2.5 + kata-runtime shimv2 : 1.6.0 #1488

@mcastelino

Description

@mcastelino

Description of problem

When running with latest Kubernetes, Containerd and Kata, Kata setup as shimv2

Kubernetes v1.14.0 + Containerd 1.2.5 + kata-runtime : 1.6.0

[plugins]
  [plugins.cri]
   [plugins.cri.containerd]
     [plugins.cri.containerd.runtimes.kata]
        runtime_type = "io.containerd.kata.v2"

We get incorrect metrics reported (all metrics reported as 0). This means that scaling is also broken.

Early investigation shows that the metrics are being picked up purely from the container cgroups.
Moving QEMU vCPU threads into container cgroups shows metrics being reported properly.

This means that kubelet is not obtaining the metrics via cri, or that containerd is not obtaining the metrics from the kata-shim.

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