-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: kvm2 create private subnets, switch to virtualbox driver
We want to allow the clusters to be reached by the client and with each other, since by design mnikube runs each cluster in a private subnets when using kvm driver, simply adding routes using route command does not work, also tried port-forwarding in the host and sending requests within the vm to the host and it didn't work, and to fix it this you need to manually edit the network settings from outside and destroy it and restart the vm as explained here kubernetes/minikube#11499, which makes the tests harder to run. A solution would be to use docker and create a loop until all kube-proxy pods are running as needed, but it can only do 2 clusters for some reason, the third will automatically use kvm2. moreover it behaves differently for each run. But that won't be needed as virtualbox driver runs all clusters within the same network. Also registered 3 different providers, one for each cluster using their own ipfs node. and simplified the scripts.
- Loading branch information
Showing
7 changed files
with
148 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
docker rm --force anvil || true | ||
|
||
# (NOTE: Unfortunately, we cannot use a port other than 8545, or otherwise the eth-rpc service will break) | ||
docker run -d -p 8545:8545 --restart=always --name=anvil \ | ||
ghcr.io/foundry-rs/foundry:nightly-619f3c56302b5a665164002cb98263cd9812e4d5 \ | ||
-- 'anvil --host 0.0.0.0 --state /anvil-state.json' 2>/dev/null || { | ||
docker exec anvil ash -c 'kill 1 && rm -f /anvil-state.json' # Reset anvil state | ||
} | ||
sleep 5 | ||
|
||
# deploy the contracts | ||
DEPLOYER_KEY=$(docker logs anvil | awk '/Private Keys/ {flag=1; next} flag && /^\(0\)/ {print $2; exit}') # anvil.accounts[0] | ||
( cd ../../../contracts; forge script script/Deploy.s.sol --private-key "$DEPLOYER_KEY" --rpc-url http://localhost:8545 --broadcast) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
pricing: | ||
table: | ||
format: yaml | ||
# filename: pricing.yaml | ||
contents: | | ||
tables: | ||
- paymentContractAddress: "5/FyXnc0ziiPg2fhuxQ+kLs/BRI=" | ||
resources: | ||
- resource: "cpu" | ||
priceForReservation: 200000000000 | ||
- resource: "ram" | ||
priceForReservation: 500 | ||
- resource: "storage" | ||
priceForUsage: 500 | ||
- resource: "bandwidth_ingress" | ||
priceForUsage: 800 | ||
- resource: "bandwidth_egress" | ||
priceForUsage: 800 | ||
cpu_model: 'Intel Xeon Platinum 8452Y Processor' | ||
tee_type: 'Secure Enclaves' | ||
withdraw: | ||
address: '0x23618e81E3f5cdF7f54C3d65f7FBc0aBf5B21E8f' | ||
time: 15 | ||
info: | ||
format: yaml | ||
contents: | | ||
regions: | ||
- name: "usa" | ||
zone: "north" | ||
num: 5 | ||
- name: "aus" | ||
zone: "south" | ||
num: 2 | ||
multiaddrs: | ||
- "https://kubo.business/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
pricing: | ||
table: | ||
format: yaml | ||
# filename: pricing.yaml | ||
contents: | | ||
tables: | ||
- paymentContractAddress: "5/FyXnc0ziiPg2fhuxQ+kLs/BRI=" | ||
resources: | ||
- resource: "cpu" | ||
priceForReservation: 200000000000 | ||
- resource: "ram" | ||
priceForReservation: 500 | ||
- resource: "storage" | ||
priceForUsage: 500 | ||
- resource: "bandwidth_ingress" | ||
priceForUsage: 800 | ||
- resource: "bandwidth_egress" | ||
priceForUsage: 800 | ||
cpu_model: 'Intel Xeon Platinum 8452Y Processor' | ||
tee_type: 'CVM' | ||
withdraw: | ||
address: '0xa0Ee7A142d267C1f36714E4a8F75612F20a79720' | ||
time: 15 | ||
info: | ||
format: yaml | ||
contents: | | ||
regions: | ||
- name: "bul" | ||
zone: "north" | ||
num: 3 | ||
- name: "alg" | ||
zone: "south" | ||
num: 8 | ||
multiaddrs: | ||
- "https://kubo.business/" |