Skip to content

Commit 376aba0

Browse files
committed
fix port problem
1 parent 6fb8a55 commit 376aba0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

rust/operator-binary/src/controller.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -975,8 +975,11 @@ fn build_server_rolegroup_daemonset(
975975
format!("{STACKABLE_LOG_DIR}/containerdebug"),
976976
)
977977
.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())
978+
// If we also add a container port "metrics" pointing to the same port number, we get a
979+
//
980+
// .spec.template.spec.containers[name="opa"].ports: duplicate entries for key [containerPort=8081,protocol="TCP"]
981+
//
982+
// So we don't do that
980983
.add_volume_mount(CONFIG_VOLUME_NAME, CONFIG_DIR)
981984
.context(AddVolumeMountSnafu)?
982985
.add_volume_mount(LOG_VOLUME_NAME, STACKABLE_LOG_DIR)

0 commit comments

Comments
 (0)