Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public class ZooKeeperResourcesFactory extends BaseResourcesFactory<ZooKeeperSpe
public static final int DEFAULT_LEADER_ELECTION_PORT = 3888;
public static final int DEFAULT_CLIENT_PORT = 2181;
public static final int DEFAULT_CLIENT_TLS_PORT = 2281;
public static final int DEFAULT_METRICS_PORT = 8000;
public static final String ENV_ZOOKEEPER_SERVERS = "ZOOKEEPER_SERVERS";
public static final List<String> DEFAULT_ENV = List.of("ZOOKEEPER_SERVERS");

Expand Down Expand Up @@ -309,6 +310,10 @@ public void patchStatefulSet() {
new ContainerPortBuilder()
.withName("leader-election")
.withContainerPort(DEFAULT_LEADER_ELECTION_PORT)
.build(),
new ContainerPortBuilder()
.withName("metrics")
.withContainerPort(DEFAULT_METRICS_PORT)
.build()
))
.withEnv(env)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ public void testDefaults() throws Exception {
name: server
- containerPort: 3888
name: leader-election
- containerPort: 8000
name: metrics
readinessProbe:
exec:
command:
Expand Down