-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTiltfile
More file actions
37 lines (31 loc) · 913 Bytes
/
Tiltfile
File metadata and controls
37 lines (31 loc) · 913 Bytes
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
# Tiltfile
# Tilt configuration for local development with Knative
# Configure k8s context
allow_k8s_contexts('k3d-dev-cluster')
# Local registry configuration
default_registry('registry.localhost:5000')
# Deploy the example hello service
k8s_yaml('examples/hello-service.yaml')
# Monitoring and observability (optional - only if octant is installed)
local_resource(
'octant',
serve_cmd='octant --disable-open-browser --listener-addr=0.0.0.0:7777',
labels=['monitoring'],
allow_parallel=True
)
# Knative serving health check
local_resource(
'knative-health',
cmd='kubectl get ksvc -A',
auto_init=False,
trigger_mode=TRIGGER_MODE_MANUAL,
labels=['health']
)
# Registry health check
local_resource(
'registry-health',
cmd='curl -s http://registry.localhost:5000/v2/_catalog | jq',
auto_init=False,
trigger_mode=TRIGGER_MODE_MANUAL,
labels=['health']
)