Local Run Tutorial — Ingress Info Service
Local Run Tutorial
This guide walks you through running the service locally against a Kubernetes cluster using a kubeconfig file.
Prerequisites
- Go toolchain (for building) or a prebuilt binary/container
- Access to a Kubernetes cluster and a valid
KUBECONFIG curlfor basic requests
Environment
- LISTEN_ADDR: HTTP listen address (default
:8080) - KUBECONFIG: Path to kubeconfig file for out-of-cluster runs
- INGRESS_INFO_KEYS_FILE: Optional file with one API key per line (overrides Secret for local runs)
Steps
- Build and run
- Verify health/readiness
- Try the API without auth (expect 401)
- Try with a valid key
- ETag / conditional GET
Troubleshooting
- If you see kubeconfig-related warnings in logs, ensure
KUBECONFIGpoints to a valid file. - For missing keys, create
.devkeyswith a test key (one per line). - Startup may delay until informers sync; check
/readyzfor readiness.