From 5997f133c3df8cd1b13b015977b60a0a9b6efad0 Mon Sep 17 00:00:00 2001 From: Leo Date: Sun, 29 Nov 2020 19:19:37 +0100 Subject: [PATCH] solana: use loopback address to connect to other containers in same pod There's a bit of a chicken-and-egg problem here - the liveness probe cannot succeed until all containers in the pod are ready, and the service load balancer won't work until it's ready. --- solana/devnet_setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solana/devnet_setup.sh b/solana/devnet_setup.sh index 3dd7f3a2..184b45af 100755 --- a/solana/devnet_setup.sh +++ b/solana/devnet_setup.sh @@ -5,7 +5,7 @@ set -x # Configure CLI (works the same as upstream Solana CLI) mkdir -p ~/.config/solana/cli cat < ~/.config/solana/cli/config.yml -json_rpc_url: "http://solana-devnet:8899" +json_rpc_url: "http://127.0.0.1:8899" websocket_url: "" keypair_path: /usr/src/solana/id.json EOF @@ -24,7 +24,7 @@ retry () { } # Fund our account (as seen in id.json). -retry cli airdrop solana-devnet:9900 +retry cli airdrop 127.0.0.1:9900 # Create the bridge contract at a known address # OK to fail on subsequent attempts (already created).