Last active
September 29, 2022 13:41
-
-
Save roderik/f60907e2abfc31590f6b4c64a1c4f856 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
apiVersion: troubleshoot.sh/v1beta2 | |
kind: Preflight | |
metadata: | |
name: settlemint | |
spec: | |
analyzers: | |
- clusterVersion: | |
outcomes: | |
- fail: | |
when: "< 1.20.0" | |
message: The application requires Kubernetes 1.20.0 or later, and recommends 1.21.0 or later. | |
uri: https://www.kubernetes.io | |
- warn: | |
when: "< 1.21.0" | |
message: Your cluster meets the minimum version of Kubernetes, but we recommend you update to 1.21.0 or later. | |
uri: https://kubernetes.io | |
- pass: | |
message: Your cluster meets the recommended and required versions of Kubernetes. | |
- containerRuntime: | |
outcomes: | |
- fail: | |
when: "== gvisor" | |
message: The Admin Console does not support using the gvisor runtime | |
- pass: | |
message: A supported container runtime is present on all nodes | |
- distribution: | |
checkName: Check Kubernetes environment. | |
outcomes: | |
- fail: | |
when: "== docker-desktop" | |
message: The application does not support Docker Desktop Clusters | |
- fail: | |
when: "== microk8s" | |
message: The application does not support Microk8s Clusters | |
- fail: | |
when: "== minikube" | |
message: The application does not support Minikube Clusters | |
- 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: "== openshift" | |
message: OpenShift is a supported distribution | |
- pass: | |
when: "== k3s" | |
message: KURL is a supported distribution | |
- pass: | |
when: "== kurl" | |
message: KURL is a supported distribution | |
- pass: | |
when: "== digitalocean" | |
message: DigitalOcean is a supported distribution | |
- warn: | |
message: Unable to determine the distribution of Kubernetes | |
- nodeResources: | |
checkName: Total CPU Cores | |
outcomes: | |
- fail: | |
when: "sum(cpuCapacity) < 2" | |
message: The cluster must contain at least 2 cores, and should contain at least 4 cores. | |
- warn: | |
when: "sum(cpuCapacity) < 4" | |
message: The cluster should contain at least 4 cores. | |
- pass: | |
message: There are at least 4 cores in the cluster. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment