Kubernetes nodes and pods data collection for analysys.
- Go to the Web Server
cd web
and build withnpm run build
- Go helm-chart dir
cd ./helm
- Build and deploy into K8s with
wdias build ~/wdias/wdias-data-collector & wdias up helm/wdias-data-collector
wdias
refer towdias="~/wdias/wdias/bin/macos/dev"
from wdias
- Make sure
metrics-server
is running on the K8s withminikube addons enable metrics-server
- List addons with
minikube addons list
- List addons with
- Create a cluster role for default name space with
kubectl create clusterrolebinding default-cluster-admin --clusterrole=cluster-admin --serviceaccount=default:default
In order to install this service, need to install metrics-server
. If you're using Docker-for-Mac or similar which doesn't have metrics-server
, then need to install Metrics Server manually.
Access the API with http://analysis-api.wdias.com/metrics
.
cd ~/wdias && wdias build wdias-data-collector && helm del --purge wdias-data-collector && wdias helm_install wdias-data-collector/helm/wdias-data-collector
kubectl get pods --all-namespaces | grep 'wdias-data-collector' | grep 'Running' | awk '{print $2}' | xargs kubectl logs -f --tail=20
- Connect to running pod:
kubectl get pods | grep 'wdias-data-collector' | awk '{print $1}' | xargs -o -I {} kubectl exec -it {} -- /bin/sh
- Connect to SQLLite DB -
sqllite3 wdias.db
- Cheet Sheet:
https://vicente-hernando.appspot.com/sqlite3-cheat-sheet
- Cheet Sheet: