/

Container Runtime

Analyzing the container runtime on each node of the Kubernetes cluster


The containerRuntime analyzer is used to analyze the container runtime(s) available in the cluster. The when attribute supports standard comparators to compare to the detected runtime.

The containerRuntime analyzer uses data from the clusterResources collector. The clusterResources collector is automatically added and will always be present.

Parameters

There are no parameters available for this analyzer.

Example Analyzer Definition

apiVersion: troubleshoot.sh/v1beta2
kind: Preflight
metadata:
  name: no-gvisor
spec:
  analyzers:
    - containerRuntime:
        outcomes:
          - fail:
              when: "== gvisor"
              message: The application does not support gvisor
          - pass:
              message: A supported container runtime was found

Note: troubleshoot.sh/v1beta2 was introduced in preflight and support-bundle krew plugin version 0.9.39 and Kots version 1.19.0. Kots vendors should read the guide to maintain backwards compatibility.

Edit on GitHub