File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -640,12 +640,7 @@ pub fn build_server_role_service(
640640
641641 let service_spec = ServiceSpec {
642642 type_ : Some ( opa. spec . cluster_config . listener_class . k8s_service_type ( ) ) ,
643- ports : Some ( vec ! [ ServicePort {
644- name: Some ( APP_PORT_NAME . to_string( ) ) ,
645- port: APP_PORT . into( ) ,
646- protocol: Some ( "TCP" . to_string( ) ) ,
647- ..ServicePort :: default ( )
648- } ] ) ,
643+ ports : Some ( data_service_ports ( ) ) ,
649644 selector : Some ( service_selector_labels. into ( ) ) ,
650645 internal_traffic_policy : Some ( "Local" . to_string ( ) ) ,
651646 ..ServiceSpec :: default ( )
@@ -980,6 +975,8 @@ fn build_server_rolegroup_daemonset(
980975 format ! ( "{STACKABLE_LOG_DIR}/containerdebug" ) ,
981976 )
982977 . add_container_port ( APP_PORT_NAME , APP_PORT . into ( ) )
978+ // The metrics are served on the same port as the HTTP traffic
979+ . add_container_port ( METRICS_PORT_NAME , APP_PORT . into ( ) )
983980 . add_volume_mount ( CONFIG_VOLUME_NAME , CONFIG_DIR )
984981 . context ( AddVolumeMountSnafu ) ?
985982 . add_volume_mount ( LOG_VOLUME_NAME , STACKABLE_LOG_DIR )
You can’t perform that action at this time.
0 commit comments