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

Way to set backend images repo url #316

Closed
javond-cap opened this issue Jan 21, 2025 · 4 comments · Fixed by #317
Closed

Way to set backend images repo url #316

javond-cap opened this issue Jan 21, 2025 · 4 comments · Fixed by #317
Assignees
Labels
enhancement New feature or request question Further information is requested

Comments

@javond-cap
Copy link

javond-cap commented Jan 21, 2025

Problem :

I work with an environment without internet access,
I need to get images from a relay image repository,
Is there a way to configure kubehound to set backends images url ?

Solution :

A way to set each service image url in config file

@Zenithar
Copy link
Contributor

Hello, thank you for your contribution.

To confirm: you are looking for a way to override docker images pulled during the kh backend command so that you could pull them from a different registry?

@Zenithar Zenithar added enhancement New feature or request question Further information is requested labels Jan 22, 2025
@Zenithar Zenithar self-assigned this Jan 22, 2025
@javond-cap
Copy link
Author

Hello, you're welcome 😸

That's exactly what I want to do.

@Zenithar
Copy link
Contributor

Zenithar commented Jan 22, 2025

You should be able to reuse the docker compose file - https://github.com/DataDog/KubeHound/blob/main/deployments/kubehound/docker-compose.yaml - and add an override to this file.

Create a docker-compose.overrides.yaml file, with such content:

name: kubehound-release
services:
  mongodb:
    image: your.registry.tld/mongo/mongo:6.0.6
    ports:
      - "127.0.0.1:27017:27017"

  kubegraph:
    image: your.registry.tld/datadog/kubehound-graph:latest
    ports:
      - "127.0.0.1:8182:8182"
      - "127.0.0.1:8099:8099"
  
  ui-jupyter:
    image: your.registry.tld/datadog/kubehound-ui:latest

  ui-invana-engine:
    image: your.registry.tld/invanalabs/invana-engine:latest

  ui-invana-studio:
    image: your.registry.tld/invanalabs/invana-studio:latest

Then invoke the kh backend command this way:

$ kh backend -f docker-compose.yaml,docker-compose.overrides.yaml

@javond-cap
Copy link
Author

Thank you ! It works with the command :

$ kubehound backend up -f docker-compose.overrides.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants