-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from replicatedhq/samples
Add samples
- Loading branch information
Showing
3 changed files
with
114 additions
and
18 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
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. | ||
- customResourceDefinitionName: | ||
customResourceDefinitionName: rook | ||
outcomes: | ||
- fail: | ||
message: Rook is required for the application. Rook was not found in the cluster. | ||
- pass: | ||
message: Found a supported version of Rook installed and running in the cluster. | ||
- imagePullSecret: | ||
checkName: Registry credneitlas for Quay.io | ||
registryName: quay.io | ||
outcomes: | ||
- fail: | ||
message: Cannot pull from quay.io | ||
- pass: | ||
message: Found credentials to pull from quay.io | ||
- storageClass: | ||
checkName: Required storage classes | ||
storageClassName: "expected-storage-class-name" | ||
outcomes: | ||
- fail: | ||
message: The required storage class was not found in the cluster. | ||
- pass: | ||
message: The required storage class was found in the cluster. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
apiVersion: troubleshoot.replicated.com/v1beta1 | ||
kind: Collector | ||
metadata: | ||
name: collector-sample | ||
spec: | ||
- clusterInfo: {} | ||
- clusterResources: {} | ||
- secret: | ||
name: illmannered-cricket-mysql | ||
namespace: default | ||
key: mysql-password | ||
- logs: | ||
selector: | ||
- name=nginx-ingress-microk8s | ||
namespace: default | ||
limits: | ||
maxAge: 30d | ||
maxLines: 10000 | ||
- run: | ||
collectorName: ping-google | ||
namespace: default | ||
image: flungo/netutils | ||
command: ["ping"] | ||
args: ["www.google.com"] | ||
timeout: 5s | ||
- exec: | ||
collectorName: mysql-vars | ||
selector: | ||
- app=mysql | ||
namespace: default | ||
command: ["mysql"] | ||
args: ["-ureplicated", "-ppassword", "-e", "show processlist"] | ||
timeout: 60m | ||
- exec: | ||
collectorName: hosts | ||
selector: | ||
- app=graphql-api | ||
namespace: default | ||
command: ["cat"] | ||
args: ["/etc/hosts"] | ||
timeout: 60m | ||
- exec: | ||
collectorName: broken | ||
selector: | ||
- app=graphql-api | ||
namespace: default | ||
command: ["cat"] | ||
args: ["/etc/hostdasddsda"] | ||
timeout: 60m | ||
- http: | ||
collectorName: test-get | ||
get: | ||
url: https://api.staging.replicated.com/market/v1/echo/ip | ||
insecureSkipVerify: false | ||
headers: {} | ||
- http: | ||
collectorName: test-post | ||
post: | ||
url: http://httpbin.org/headers | ||
insecureSkipVerify: false | ||
headers: | ||
X-Custom-Header: "post-request" | ||
- http: | ||
collectorName: test-put | ||
put: | ||
url: http://httpbin.org/anything | ||
insecureSkipVerify: false | ||
headers: | ||
X-Custom-Header: "put-request" | ||
- http: | ||
collectorName: test-broken | ||
put: | ||
url: "" |