-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
df57f20
commit 2b45366
Showing
8 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
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,23 @@ | ||
apiVersion: canaries.flanksource.com/v1 | ||
kind: Canary | ||
metadata: | ||
name: http-basic-auth | ||
spec: | ||
schedule: "@every 1m" | ||
http: | ||
- name: "basic auth fail" | ||
url: https://httpbin.demo.aws.flanksource.com/basic-auth/hello/world | ||
responseCodes: [401] | ||
- name: "basic auth pass" | ||
url: https://httpbin.demo.aws.flanksource.com/basic-auth/hello/world | ||
responseCodes: [200] | ||
username: | ||
valueFrom: | ||
configMapKeyRef: | ||
name: basic-auth | ||
key: username | ||
password: | ||
valueFrom: | ||
configMapKeyRef: | ||
name: basic-auth | ||
key: password |
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,15 @@ | ||
apiVersion: canaries.flanksource.com/v1 | ||
kind: Canary | ||
metadata: | ||
name: http-from-helm | ||
spec: | ||
schedule: "@every 1m" | ||
http: | ||
- name: HTTP check | ||
url: $(url) | ||
env: | ||
- name: url | ||
valueFrom: | ||
helmRef: | ||
name: podinfo | ||
key: .ingress.hosts[0].host |
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
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,20 @@ | ||
apiVersion: canaries.flanksource.com/v1 | ||
kind: Canary | ||
metadata: | ||
name: http-basic-auth-service-account | ||
spec: | ||
schedule: "@every 1m" | ||
http: | ||
- name: vault-example-sre | ||
description: "HashiCorp Vault functionality check." | ||
url: https://vault.example/v1/auth/kubernetes/login | ||
env: | ||
- name: TOKEN | ||
valueFrom: | ||
serviceAccount: default-account | ||
templateBody: true | ||
body: | | ||
{ | ||
"jwt": "$(TOKEN)", | ||
"role": "example-role" | ||
} |
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,11 @@ | ||
apiVersion: canaries.flanksource.com/v1 | ||
kind: Canary | ||
metadata: | ||
name: http-check | ||
spec: | ||
schedule: "@every 30s" | ||
http: | ||
- name: basic-check | ||
url: https://httpbin.demo.aws.flanksource.com/status/200 | ||
- name: failing-check | ||
url: https://httpbin.demo.aws.flanksource.com/status/500 |
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,11 @@ | ||
apiVersion: canaries.flanksource.com/v1 | ||
kind: Canary | ||
metadata: | ||
name: http-tls-duration | ||
spec: | ||
schedule: "@every 5m" | ||
http: | ||
- name: http pass response 200 status code | ||
endpoint: https://httpbin.demo.aws.flanksource.com/status/200 | ||
test: | ||
expr: "code in [200,201,301] and sslAge > Duration('7d')" |
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,15 @@ | ||
apiVersion: canaries.flanksource.com/v1 | ||
kind: Canary | ||
metadata: | ||
name: http-check | ||
spec: | ||
schedule: "@every 30s" | ||
http: | ||
- name: http pass response 200 status code | ||
url: https://httpbin.demo.aws.flanksource.com/status/200 | ||
tlsConfig: | ||
ca: | ||
valueFrom: | ||
secretKeyRef: | ||
name: ca-cert | ||
key: ca.pem |
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,11 @@ | ||
apiVersion: canaries.flanksource.com/v1 | ||
kind: Canary | ||
metadata: | ||
name: http-check | ||
annotations: | ||
trace: "true" | ||
spec: | ||
schedule: "@every 30s" | ||
http: | ||
- name: headers check | ||
url: https://httpbin.demo.aws.flanksource.com/headers |