Skip to content

Dynamic Listener configuration for Kubernetes deployment and fixing java core dumping for AMR64#643

Open
mmohamed wants to merge 2 commits intowurstmeister:masterfrom
mmohamed:master
Open

Dynamic Listener configuration for Kubernetes deployment and fixing java core dumping for AMR64#643
mmohamed wants to merge 2 commits intowurstmeister:masterfrom
mmohamed:master

Conversation

@mmohamed
Copy link
Copy Markdown

  • For ARM64 arch, switching base image from 'openjdk:8u212-jre-alpine' to 'openjdk:8u201-jre-alpine' to prevent container core dump @see issue.
  • For K8S deployment, add a 'KAFKA_LISTENERS_COMMAND' environment parameter to build 'KAFKA_LISTENERS' on fly (to use pod hostname when container started) @see start_kafka.sh
if [[ -n "$KAFKA_LISTENERS_COMMAND" ]]; then
    KAFKA_LISTENERS=$(eval "$KAFKA_LISTENERS_COMMAND")
    export KAFKA_LISTENERS
    unset KAFKA_LISTENERS_COMMAND
fi

…LISTENERS' on fly, for Kubernetes, using pod hostname when container started for example.
@michalkowol
Copy link
Copy Markdown

After this change, Kafka works perfectly on Apple Macbook Pro M1.
Great work @mmohamed :)

@mmohamed
Copy link
Copy Markdown
Author

After this change, Kafka works perfectly on Apple Macbook Pro M1.
Great work @mmohamed :)

You're welcome @michalkowol :)

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

Successfully merging this pull request may close these issues.

2 participants