File tree Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Expand file tree Collapse file tree 4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ COPY --from=builder \
4444EXPOSE ${GRPC_TLS_PORT:-2135}
4545EXPOSE ${GRPC_PORT:-2136}
4646EXPOSE ${MON_PORT:-8765}
47+ EXPOSE ${YDB_KAFKA_PROXY_PORT:-9092}
4748
4849HEALTHCHECK --start-period=60s --interval=1s CMD sh ./health_check
4950
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export YDB_GRPC_ENABLE_TLS="true"
88export GRPC_TLS_PORT=${GRPC_TLS_PORT:- 2135}
99export GRPC_PORT=${GRPC_PORT:- 2136}
1010export YDB_GRPC_TLS_DATA_PATH=" /ydb_certs"
11+ export YDB_KAFKA_PROXY_PORT=${YDB_KAFKA_PROXY_PORT:- 9092}
1112
1213/local_ydb deploy --ydb-working-dir /ydb_data --ydb-binary-path /ydbd --fixed-ports --dont-use-log-files;
1314
Original file line number Diff line number Diff line change @@ -349,6 +349,10 @@ def deploy(arguments):
349349 if 'YDB_EXPERIMENTAL_PG' in os .environ :
350350 optionals ['pg_compatible_expirement' ] = True
351351
352+ kafka_api_port = int (os .environ .get ("YDB_KAFKA_PROXY_PORT" , "0" ))
353+ if kafka_api_port != 0 :
354+ optionals ['kafka_api_port' ] = kafka_api_port
355+
352356 configuration = KikimrConfigGenerator (
353357 parse_erasure (arguments ),
354358 arguments .ydb_binary_path ,
Original file line number Diff line number Diff line change @@ -166,6 +166,7 @@ def __init__(
166166 pg_compatible_expirement = False ,
167167 generic_connector_config = None , # typing.Optional[TGenericConnectorConfig]
168168 pgwire_port = None ,
169+ kafka_api_port = None ,
169170 ):
170171 if extra_feature_flags is None :
171172 extra_feature_flags = []
@@ -430,6 +431,13 @@ def __init__(
430431 self .yaml_config ["feature_flags" ]["enable_external_data_sources" ] = True
431432 self .yaml_config ["feature_flags" ]["enable_script_execution_operations" ] = True
432433
434+ if kafka_api_port is not None :
435+ kafka_proxy_config = dict ()
436+ kafka_proxy_config ["enable_kafka_proxy" ] = True
437+ kafka_proxy_config ["listening_port" ] = kafka_api_port
438+
439+ self .yaml_config ["kafka_proxy_config" ] = kafka_proxy_config
440+
433441 @property
434442 def pdisks_info (self ):
435443 return self ._pdisks_info
You can’t perform that action at this time.
0 commit comments