From bd95adeb69dd5e43b6c3f60d58662e4112238734 Mon Sep 17 00:00:00 2001 From: Marc Campbell Date: Fri, 26 Jul 2019 22:05:39 +0000 Subject: [PATCH] Content for sample --- .../troubleshoot/sample-troubleshoot.yaml | 73 +++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/examples/troubleshoot/sample-troubleshoot.yaml b/examples/troubleshoot/sample-troubleshoot.yaml index e69de29bb..8dbbf0c94 100644 --- a/examples/troubleshoot/sample-troubleshoot.yaml +++ b/examples/troubleshoot/sample-troubleshoot.yaml @@ -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: ""