kube-shodan monitors the public IPs of a Kubernetes cluster and adds new ones to Shodan Monitor. IPs which are removed from the cluster are also removed from Shodan. This way all public IPs of the cluster will always be monitored by Shodan.
helm repo add ekeih https://ekeih.github.io/helm-charts
helm repo up
# Pass Shodan token directly
helm install --namespace kube-shodan --name kube-shodan --set shodanApiToken=TOKEN ekeih/kube-shodan
# Or use Shodan token from existing secret
helm install --namespace kube-shodan --name kube-shodan --set shodanApiToken=SECRETNAME --set shodanApiSecretKey=SECRETKEY ekeih/kube-shodan
pip install kube-shodan
git clone git@github.com:ekeih/kube-shodan.git
cd kube-shodan
pip install .