mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
20 lines
532 B
YAML
20 lines
532 B
YAML
apiVersion: troubleshoot.replicated.com/v1beta1
|
|
kind: Preflight
|
|
metadata:
|
|
name: example-preflight-checks
|
|
spec:
|
|
collectors:
|
|
- data:
|
|
name: config/replicas.txt
|
|
data: "2"
|
|
analyzers:
|
|
- textAnalyze:
|
|
checkName: Replica Count
|
|
fileName: config/replicas.txt
|
|
regexGroups: '(?P<Replicas>\d+)'
|
|
outcomes:
|
|
- fail:
|
|
when: "Replicas < 5"
|
|
message: That's not enough replicas!
|
|
- pass:
|
|
message: You've selected at leat 5 replicas |