Register your GCP compute to Atlas Network Testnet
Compute comes in all shapes and sizes. Cloud providers such as the Google Cloud Platform are a great way to spin up compute with little effort.
This guide demonstrates how you can use your GCP-powered compute and register it with Atlas Network Testnet.
GCP hands out credits to new users. This means that anyone can provide compute and earn Node Points in the Atlas Network incentivized Testnet!
Prerequisites
- Gmail account
- Wallet
- GCP credits or billing
Step 1. Prepare the network rules
1.1 Sign up or log in to your Google cloud account and create a new project.
1.2 Navigate to Firewall policies and click CREATE FIREWALL POLICY.
1.3 Name the policy and give it a useful description, click CONTINUE.
Show me
1.4 Click CREATE FIREWALL RULE.
1.5 Set the following and click Save.
- Priority, if you are new to this, follow our exampe of 100
- Leave other properties as default
- Scroll down to Source filters and set the IPV4 to 0.0.0.0/0
- [Optionally] restrict the traffic to the following ports:
- UDP: 8472, 51820, 51821
- TCP: 10250
Show me
Setting IPV4 ranges to 0.0.0.0/0 allows all inbound and outbound traffic, which means anyone can attempt to access your services, potentially leading to unauthorized access. Specifying the ports helps to restrict the allowed traffic to only the services or protocols that use these ports. Unless you are experienced setting up ingress and egress firewall rules, we do NOT recommend using this GCP project for any critical purpose as this network rule will apply to all compute instances you create in this VPC network (Virtual Private Cloud).
1.6 Repeat the flow in 1.5 for Egress traffic.
- Priority, if you are new to this, follow our exampe of 101
- Set Direction of traffic to Egress
- Scroll down to Source filters and set the IPV4 to 0.0.0.0/0
- [Optionally] restrict the traffic to the following ports:
- UDP: 8472, 51820, 51821
- TCP: 10250
Step 2. Create the compute
2.1 Navigate to Compute Engine.
Show me
2.2 Navigate to VM instances and click +CREATE INSTANCE.
Show me
2.3 From Machine configuration, select C4.
This machine meets the minimum requirements for the Testnet.
Show me
2.4 Click OS and storage and increase the storage to 80 GB, click Select.
2.4 Click Networking and select:
- Allow HTTP traffic
- Allow HTTPS traffic
Show me
2.5 Click Create
Step 3. Register as a provider
To register as a provider, follow the first two steps of the Registration tutorial:
Return here once you have completed these tasks and have copied your command.
Don't worry about the final step on the Register tutorial, we will cover that here.
Step 4. Connect Atlas Network Testnet to your GCP compute
4.1 Add sudo
to your command to allow Atlas Network read and write access to your GCP machine.
curl -L https://get.atlasnetwork.dev | sh -s - 9zvmdvJ****Identifier*****w9PHZwP
becomessudo curl -L https://get.atlasnetwork.dev | sudo sh -s - 9zvmdvJ****Identifier*****w9PHZwP
4.2 From the GCP dashboard, navigate to VM instances, click SSH and Authorize to SSH-in-browser connect to your VM.
Show me
4.3 Paste your edited code snippet in the terminal provided and press Enter on your keyboard to run.
Show me
Step 5. Activate your machine on Atlas Network Testnet
5.1 From the Atlas Network dashboard, find your GCP machine in the "AWAITING-STAKE" state.
5.2 Continue by clicking "Stake."
Show me
5.3 Confirm the transaction in your wallet.
Show me
5.4 Your Machine's state changes to "CONFIGURING" and then to "ACTIVE."
Congratulations! You're providing decentralized compute via the Atlas Network's Protocol on Arbitrum Testnet.