-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindexer.yml
24 lines (21 loc) · 1.03 KB
/
indexer.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
# tasks that let you interact with the indexer for operational requirements
version: '3'
vars: # customise these in your .env in launchpad-starter
RELEASE_NAME_KUBE_PROMETHEUS_STACK: '{{.RELEASE_NAME_KUBE_PROMETHEUS_STACK | default "kube-prometheus-stack"}}'
tasks:
remote-toolbox:
desc: Open preconfigured remote shell session in the cluster containing tools like psql, graph indexer and graphman
interactive: true
cmds:
- |
set - {{ .CLI_ARGS }}
NS=$1; shift
[ -z "$NS" ] && echo "You must provide a namespace as the first argument! e.g. remote-toolbox -- graph-mainnet" && exit 1
COMMAND=${@:-bash}
kubectl exec --tty --stdin graph-toolbox-0 -n $NS -- "$COMMAND"
forward-grafana:
desc: Open a port forward to the Grafana instance in the cluster
cmds:
- |
echo "Once the port forward is open, you can open the Grafana interface at http://localhost:3001"
kubectl -n monitoring port-forward service/{{.RELEASE_NAME_KUBE_PROMETHEUS_STACK}}-grafana 3001:80