Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanjay authored May 4, 2023
1 parent f3f8207 commit cfe8d5a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@ echo $CLUSTER_ID > $SHARE_DIR/cluster_id
# debug for shell
# sleep 3600

# adding setting to reflect the setting from
# deploy-kafka.yaml
echo "default.replication.factor=$KAFKA_DEFAULT_REPLICATION_FACTOR" >> /opt/kafka/config/kraft/server.properties

sed -e "s+^node.id=.*+node.id=$NODE_ID+" \
-e "s+^num.partitions=.*+num.partitions=$KAFKA_NUM_PARTITIONS+" \
-e "s+^controller.quorum.voters=.*+controller.quorum.voters=$CONTROLLER_QUORUM_VOTERS+" \
-e "s+^listeners=.*+listeners=$LISTENERS+" \
-e "s+^advertised.listeners=.*+advertised.listeners=$ADVERTISED_LISTENERS+" \
Expand Down

0 comments on commit cfe8d5a

Please sign in to comment.