diff --git a/README.md b/README.md index 768159c..70ab42f 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ - [Installation 🔧](#installation-) - [Deployment 🚀](#deployment-) - [Host settings ⚙](#host-settings-) + - [Metrics 📈](#metrics-) + - [Prometheus example](#prometheus-example) - [Creating resources ✏](#creating-resources-) - [Service](#service) - [Deployment](#deployment) @@ -87,6 +89,7 @@ root@debian:kube-nftlb# ./build.sh ## Deployment 🚀 1. Start Minikube without `kube-proxy` being deployed by default: + ```console root@debian:kube-nftlb# minikube start --vm-driver=none --extra-config=kubeadm.skip-phases=addon/kube-proxy ``` @@ -140,6 +143,24 @@ root@debian:~# nft add chain ip nat INPUT '{ type nat hook input priority 100; p root@debian:~# nft add chain ip nat OUTPUT '{ type nat hook output priority -100; policy accept; }' ``` +## Metrics 📈 + +`kube-nftlb` metrics are served in **localhost:9195/metrics**, although this is subject to change. + +### Prometheus example + +1. Build a Prometheus Docker image running the next command: + +```console +root@debian:kube-nftlb# docker image build prometheus -t prometheus-zevenet +``` + +2. Deploy that container as Daemonset: + +```console +root@debian:kube-nftlb# kubectl apply -f prometheus/daemonset.yml +``` + ## Creating resources ✏ ### Service