wip
This commit is contained in:
parent
0a4b32dffe
commit
774ea44af1
9 changed files with 160 additions and 115 deletions
30
justfile
30
justfile
|
|
@ -1,21 +1,41 @@
|
|||
forward_loki:
|
||||
# export KUBECONFIG=kubeconfig.yaml
|
||||
|
||||
|
||||
kind-up:
|
||||
kind create cluster --name grafana
|
||||
kind get kubeconfig --name grafana > kubeconfig.yaml
|
||||
kubectl create namespace meta && kubectl create namespace prod
|
||||
helm repo add grafana https://grafana.github.io/helm-charts && helm repo update
|
||||
|
||||
helm install loki grafana/loki --namespace meta --values loki-values.yaml
|
||||
helm install kps prometheus-community/kube-prometheus-stack --namespace meta -f prometheus-values.yaml
|
||||
helm install grafana grafana/grafana --values grafana-values.yml --namespace meta
|
||||
helm install k8s-monitoring grafana/k8s-monitoring --values ./k8s-monitoring-values.yml -n meta --create-namespace
|
||||
|
||||
kubectl apply -f pyservice.yaml
|
||||
|
||||
kind-down:
|
||||
kind delete cluster --name grafana
|
||||
|
||||
forward-loki:
|
||||
kubectl port-forward --namespace meta svc/loki-gateway 3100:80
|
||||
forward_grafana:
|
||||
|
||||
forward-grafana:
|
||||
#!/bin/bash
|
||||
export POD_NAME=$(kubectl get pods --namespace meta -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=grafana" -o jsonpath="{.items[0].metadata.name}")
|
||||
kubectl --namespace meta port-forward $POD_NAME 3000
|
||||
|
||||
forward_alloy_logs:
|
||||
forward-alloy-logs:
|
||||
#!/bin/bash
|
||||
export POD_NAME=$(kubectl get pods --namespace meta -l "app.kubernetes.io/name=alloy-logs,app.kubernetes.io/instance=k8s" -o jsonpath="{.items[0].metadata.name}")
|
||||
kubectl --namespace meta port-forward $POD_NAME 12345
|
||||
|
||||
forward_otel_collector:
|
||||
forward-otel-collector:
|
||||
#!/bin/bash
|
||||
export POD_NAME=$(kubectl get pods --namespace meta -l "app.kubernetes.io/name=otel-collector,app.kubernetes.io/instance=k8s" -o jsonpath="{.items[0].metadata.name}")
|
||||
kubectl --namespace meta port-forward $POD_NAME 4317
|
||||
|
||||
get_inotify_max_user_watches:
|
||||
get-inotify-max-user-watches:
|
||||
#!/bin/bashcat /proc/sys/fs/inotify/max_user_watches
|
||||
|
||||
export POD_NAME=$(kubectl get pods --namespace meta -l "app.kubernetes.io/name=grafana,app.kubernetes.io/instance=grafana" -o jsonpath="{.items[0].metadata.name}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue