Simple kubernetes deployment to simulate ifconfig.co
,ifconfig.me
or similar.
- K8s cluster
- Ingress controller(nginx or similar)
kubectl apply -f https://raw.githubusercontent.com/brokenpip3/my-ip/master/my-ip.yaml
Change the ingress host
fqdn according to your needs
kubectl apply -f https://raw.githubusercontent.com/brokenpip3/my-ip/master/ingress.yaml
-
Public ip:
curl myip.your.fqdn
-
Same but in json:
curl myip.your.fqnd/json