Analyzing the Kubernetes distribution that's running
distribution analyzer is used to check for known managed (hosted) and self-hosted versions of Kubernetes.
when attribute supports standard comparators to compare the result to.
distribution analyzer uses data from the clusterResources collector.
clusterResources collector is automatically added and will always be present.
There are no parameters available for this analyzer.
apiVersion: troubleshoot.sh/v1beta2 kind: Preflight metadata: name: require-hosted-k8s spec: analyzers: - distribution: outcomes: - fail: when: "== docker-desktop" message: The application does not support Docker Desktop - warn: when: "= microk8s" message: The application does not support Microk8s - pass: when: "= eks" message: EKS is a supported distribution - pass: when: "= gke" message: GKE is a supported distribution - pass: when: "= aks" message: AKS is a supported distribution - pass: when: "= digitalocean" message: DigitalOcean is a supported distribution - warn: when: "= minikube" message: Minikube is not suitable for production environments - warn: when: "= ibm" message: The application does not support IBM Cloud - warn: message: Unable to determine the distribution of Kubernetes
troubleshoot.sh/v1beta2was 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.