Skip to content

Commit

Permalink
Fix docker compose deployment (#265)
Browse files Browse the repository at this point in the history
* Fix compose stack

* fix Dockerfile path

* Update deployments/kubehound/docker-compose.release.ingestor.yaml

Co-authored-by: Simon Maréchal <[email protected]>

---------

Co-authored-by: Simon Maréchal <[email protected]>
  • Loading branch information
jt-dd and Minosity-VR authored Sep 13, 2024
1 parent c532f89 commit f80397e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
2 changes: 1 addition & 1 deletion deployments/kubehound/binary/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ EXPOSE 9000
USER nonroot:nonroot

ENTRYPOINT ["/kubehound"]
CMD ["serve"]
CMD ["serve"]
2 changes: 1 addition & 1 deletion deployments/kubehound/docker-compose.dev.ingestor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ services:
grpc:
build:
context: ../../
dockerfile: deployments/kubehound/kubehound/Dockerfile
dockerfile: deployments/kubehound/binary/Dockerfile
restart: unless-stopped
ports:
- "127.0.0.1:9000:9000"
Expand Down
15 changes: 15 additions & 0 deletions deployments/kubehound/docker-compose.release.ingestor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ services:
- "127.0.0.1:9000:9000"
networks:
- kubenet
environment:
# Custom config for docker compose environment
- KH_MONGODB_URL=mongodb://mongodb:27017
- KH_JANUSGRAPH_URL=ws://kubegraph:8182/gremlin
# Default config
- KH_INGESTOR_API_ENDPOINT=0.0.0.0:9000
- KH_INGESTOR_TEMP_DIR=/tmp/kubehound
- KH_INGESTOR_MAX_ARCHIVE_SIZE=2147483648 # 2GB
- KH_INGESTOR_ARCHIVE_NAME=archive.tar.gz
# AWS Bucket configuration
- KH_INGESTOR_REGION=us-east-1
- KH_INGESTOR_BUCKET_URL= # s3://<your_bucket>
- AWS_ACCESS_KEY_ID=
- AWS_SECRET_ACCESS_KEY=
- AWS_SESSION_TOKEN= # for aws-vault generated credentials

networks:
kubenet:
5 changes: 4 additions & 1 deletion deployments/kubehound/docker-compose.release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ services:
- "127.0.0.1:27017:27017"

kubegraph:
image: ghcr.io/datadog/kubehound-ui:latest
image: ghcr.io/datadog/kubehound-graph:latest
ports:
- "127.0.0.1:8182:8182"
- "127.0.0.1:8099:8099"

ui-jupyter:
image: ghcr.io/datadog/kubehound-ui:latest

0 comments on commit f80397e

Please sign in to comment.