Skip to content

Commit

Permalink
Add example for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
marccampbell committed Jul 18, 2019
1 parent df4edcb commit c3e3eb3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions examples/preflight/check-kubernetes-version.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: troubleshoot.replicated.com/v1beta1
kind: Preflight
metadata:
name: check-kubernetes-version
spec:
analyzers:
- clusterVersion:
outcomes:
- fail:
when: "< 1.14.0"
message: The application requires at Kubernetes 1.14.0 or later, and recommends 1.15.0.
uri: https://www.kubernetes.io
- warn:
when: "< 1.15.0"
message: Your cluster meets the minimum version of Kubernetes, but we recommend you update to 1.15.0 or later.
uri: https://kubernetes.io
- pass:
message: Your cluster meets the recommended and required versions of Kubernetes.

0 comments on commit c3e3eb3

Please sign in to comment.