K8s agent for NHN-Ror to report from clusters inside Privat Sky.
- Golang 1.20.x or newer GoDev
- OCI image builder (docker, podman, etc)
- Locally ror-agent uses the
%userprofile%/.kube/configas default to connect to the cluster.
Create test cluster with k3d (https://k3d.io)
k3d cluster create k8s --api-port 65001 -p "10081:80@loadbalancer" --agents 2Spinning up a cluster in docker-desktop, with a loadbalancer and 2 agents. More info
- Open repo root in your favorite IDE (VS Code, VS, Rider, etc)
- Open a terminal
- go to
<repo root>/src/clients/ror-agent go get(install dependencies)go build -o agent-> results in a executable file (win: agent.exe, unix: agent)- run
agent
- Open
<repo root>as workspace/folder in VS Code - Open terminal, go to
<repo root>/src/clients/ror-agent, and rungo get - Go to the debug button on the sidebar in VS Code
- Start
Debug Ror-agentconfiguration - Set your breakpoints in the code
Go to health endpoint: https://localhost:8090/health to check health
- Open terminal
- Go to
<repo root>\testdata - Apply test ingress manifest
kubectl apply -f avi-ingress-external.yaml