Skip to content

Commit

Permalink
add rpc services
Browse files Browse the repository at this point in the history
  • Loading branch information
gregcusack committed May 7, 2024
1 parent 601409f commit 2472910
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,14 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
kub_controller
.deploy_replicas_set(rpc_node.replica_set())
.await?;
info!("rpc replica set ({rpc_index}) deployed successfully");
info!("rpc node replica set ({rpc_index}) deployed successfully");

let rpc_service = kub_controller.create_service(
&format!("rpc-node-selector-{rpc_index}"),
rpc_node.service_labels(),
);
kub_controller.deploy_service(&rpc_service).await?;
info!("rpc node service ({rpc_index}) deployed successfully");
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/startup_scripts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -925,7 +925,7 @@ while true; do
while true; do
if [[ -z $pid ]] || ! kill -0 "$pid"; then
echo "\############## non voting validator exited, restarting ##############"
echo "\############## rpc node validator exited, restarting ##############"
break
fi
sleep 1
Expand Down

0 comments on commit 2472910

Please sign in to comment.