Open nuwang opened 4 years ago
It started working after specifying agent.host.port
so it looks like something else was running on 8181. Should this be filed as a bug because the agent makes no indication that something else was running on 8181?
This is the final working install command:
helm install uswitch/kiam --set agent.host.iptables=true --set server.useHostNetwork=true --set server.service.port=7443 --set server.service.targetPort=7443 --set server.log.level=debug --set server.extraEnv[0].name=GRPC_GO_LOG_SEVERITY_LEVEL --set server.extraEnv[0].value=debug --set server.extraEnv[1].name=GRPC_GO_LOG_VERBOSITY_LEVEL --set server.extraEnv[1].value=\'10\' --set agent.log.level=debug --set agent.extraEnv[0].name=GRPC_GO_LOG_SEVERITY_LEVEL --set agent.extraEnv[0].value=debug --set agent.extraEnv[1].name=GRPC_GO_LOG_VERBOSITY_LEVEL --set agent.extraEnv[1].value=\'10\' --set agent.host.interface=\!eth0 --set server.sslCertHostPath=/usr/share/ca-certificates/mozilla --set server.assumeRoleArn=arn:aws:iam::123456789012:role/kiam_server --set agent.gatewayTimeoutCreation=1s --set agent.host.port=9021
So I actually ran into this same issue and the other source was coredns that sets up its readiness http port on port 8181. Kiam doesn't seem to necessarily bind to a port specifically and therefore never seems to throw an error that that port is in use.
Port 8181 was working fine yesterday for me, today started saying something occupied the port. Changed the agent port and that issue gone away. I have the feeling it's a bit flaky, although I was deploying/removing many times for testing.
I've been trying to setup kiam and got to a point where the server appears to be correctly starting up and obtaining the relevant credentials. However, the agent keeps restarting because of a failing health check. No errors are shown in either the server or the agent other than a 404 on the agent's /health endpoint.
Command used to install
Server logs (partially sanitized)
Agent log
Liveness endpoint status
Environment
Single node cluster. Rancher v2.1.7 Kube version:
Things I've tried