-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTiltfile
21 lines (16 loc) · 957 Bytes
/
Tiltfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
load('ext://helm_resource', 'helm_resource', 'helm_repo')
# Install prometheus
helm_repo('prometheus-community', 'https://prometheus-community.github.io/helm-charts')
helm_resource('local-prometheus', 'prometheus-community/prometheus', flags=['--version=24.3.0'])
# helm_resource('local-prometheus', 'prometheus-community/prometheus', flags=['--version=24.3.0', '--set server.global.scrape_interval=15s,server.global.evaluation_interval=30s'])
# Install Grafana
helm_repo('grafana', 'https://grafana.github.io/helm-charts')
helm_resource('local-grafana', 'grafana/grafana', flags=['--version=6.59.4'])
# Install app
k8s_yaml(helm('charts/api'))
# Build: tell Tilt what images to build from which directories
docker_build('alanyoshida/go-api', '.')
# Watch: tell Tilt how to connect locally (optional)
k8s_resource('chart', port_forwards=3000)
k8s_resource('local-grafana', port_forwards=8080)
k8s_resource('local-prometheus', port_forwards=["9292:80"])