Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get logs is not working for REST plugin (in-cluster case) #349

Open
mginfn opened this issue Jan 7, 2025 · 2 comments
Open

Get logs is not working for REST plugin (in-cluster case) #349

mginfn opened this issue Jan 7, 2025 · 2 comments

Comments

@mginfn
Copy link

mginfn commented Jan 7, 2025

Description

I've deployed an instance of InterLink In-cluster case using the Helm chart, where plugin is configured to receive HTTP calls from InterLink API Server:

plugin:
  address: http://localhost
  port: 4000
  socket: null

The following endpoints are invoked correctly: /create, /status and /delete.
However, the /getLogs endpoint is not invoked, it seems that the InterLink API Server is using a malformed url with unix instead of localhost, see logs below:

time="2025-01-07T18:48:03Z" level=error msg="Get \"http://unix/getLogs\": dial tcp: lookup unix on 10.96.0.10:53: no such host"
time="2025-01-07T18:48:03Z" level=error msg="Internal server error on request" error="error getting container logs?): Get \"http://unix/getLogs\": dial tcp: lookup unix on 10.96.0.10:53: no such host" httpStatusCode=500 uri="/containerLogs/default/test-pod/test-container?tailLines=5000&timestamps=true" vars="map[]" 

Environment

InterLink versione: 0.3.5
Helm chart version: 0.3.33

@dciangot
Copy link
Collaborator

dciangot commented Jan 8, 2025

Weird.. I suspect it might be something on the helm side. Can you share the interLink configmap @mginfn ?

@mginfn
Copy link
Author

mginfn commented Jan 8, 2025

Hi @dciangot, sure, this is the ConfigMap:

{
	"InterLinkConfig.yaml": "InterlinkAddress: \"unix:///var/run/interlink.sock\"
		SidecarURL: \"http://localhost\"
		SidecarPort: \"4000\"
		VerboseLogging: true
		ErrorsOnlyLogging: false
		ExportPodData: true
		DataRootFolder: /data/interlink
		"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants