@@ -73,10 +73,11 @@ use crate::{
7373 Container , DB_PASSWORD_ENV , DB_USERNAME_ENV , DRUID_CONFIG_DIRECTORY , DS_BUCKET ,
7474 DeepStorageSpec , DruidClusterStatus , DruidRole , EXTENSIONS_LOADLIST , HDFS_CONFIG_DIRECTORY ,
7575 JVM_CONFIG , JVM_SECURITY_PROPERTIES_FILE , LOG_CONFIG_DIRECTORY , MAX_DRUID_LOG_FILES_SIZE ,
76- OPERATOR_NAME , RUNTIME_PROPS , RW_CONFIG_DIRECTORY , S3_ACCESS_KEY , S3_ENDPOINT_URL ,
77- S3_PATH_STYLE_ACCESS , S3_SECRET_KEY , STACKABLE_LOG_DIR , ZOOKEEPER_CONNECTION_STRING ,
78- authentication:: AuthenticationClassesResolved , authorization:: DruidAuthorization ,
79- build_recommended_labels, build_string_list, security:: DruidTlsSecurity , v1alpha1,
76+ METRICS_PORT , METRICS_PORT_NAME , OPERATOR_NAME , RUNTIME_PROPS , RW_CONFIG_DIRECTORY ,
77+ S3_ACCESS_KEY , S3_ENDPOINT_URL , S3_PATH_STYLE_ACCESS , S3_SECRET_KEY , STACKABLE_LOG_DIR ,
78+ ZOOKEEPER_CONNECTION_STRING , authentication:: AuthenticationClassesResolved ,
79+ authorization:: DruidAuthorization , build_recommended_labels, build_string_list,
80+ security:: DruidTlsSecurity , v1alpha1,
8081 } ,
8182 discovery:: { self , build_discovery_configmaps} ,
8283 extensions:: get_extension_list,
@@ -1078,6 +1079,7 @@ fn build_rolegroup_statefulset(
10781079 . args ( vec ! [ main_container_commands. join( "\n " ) ] )
10791080 . add_env_vars ( rest_env)
10801081 . add_container_ports ( druid_tls_security. container_ports ( role) )
1082+ . add_container_port ( METRICS_PORT_NAME , METRICS_PORT . into ( ) )
10811083 // 10s * 30 = 300s to come up
10821084 . startup_probe ( druid_tls_security. get_tcp_socket_probe ( 30 , 10 , 30 , 3 ) )
10831085 // 10s * 1 = 10s to get removed from service
0 commit comments