-
Notifications
You must be signed in to change notification settings - Fork 50
/
canary-validator.yml
61 lines (60 loc) · 1.46 KB
/
canary-validator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# This is used to verify that a container image has the basic expected behavior.
# See https://github.com/NVIDIA/container-canary
#
# Run locally like:
#
# canary validate --file canary-validator.yml ghcr.io/bluesky/tiled:latest
apiVersion: container-canary.nvidia.com/v2
kind: Validator
name: tiled
description: Validate that Tiled container image is operational.
env:
- name: TILED_SINGLE_USER_API_KEY
value: secret
ports:
- port: 8000
protocol: TCP
volumes: []
checks:
- name: http
description: Exposes an HTTP interface on port 8000
probe:
httpGet:
path: /
port: 8000
initialDelaySeconds: 15
timeoutSeconds: 10
failureThreshold: 3
- name: http
description: Serves a REST API with a public endpoint /api/v1
probe:
httpGet:
path: /api/v1
port: 8000
initialDelaySeconds: 15
timeoutSeconds: 10
failureThreshold: 3
- name: http
description: Serves a REST API with an authenticated endpoint /api/v1/search
probe:
httpGet:
path: /api/v1
port: 8000
initialDelaySeconds: 15
timeoutSeconds: 10
failureThreshold: 3
httpHeaders:
- name: Authorization
value: Apikey secret
- name: http
description: Serves a UI at /ui/browse
probe:
httpGet:
path: /ui/browse
port: 8000
initialDelaySeconds: 15
timeoutSeconds: 10
failureThreshold: 3
httpHeaders:
- name: Authorization
value: Apikey secret