Sol on Akash for Dummies
How to run a Solana Validator on the Akash Network the simple way
This is a multi Stage deployment guide with the aim of providing users the information to deploy and maintain a Solana Validator Node on the Akash Network with minimal friction and deployment knowledge.
- Stage 1 consists of deploying an Ubuntu image to Akash. Think of it as a normal EC2 AWS Ubuntu instance you can install software and run commands on.
- Stage 2 is the process of running a Solana Validator Node on that Ubuntu instance we deployed to Akash in Stage 1.
Ubuntu on Akash
Setup an “ssh” Ubuntu image on Akash
Create the Akash-Ubuntu Deploy.yml-
(While also exposing some ports we will need for later)
On your workstation setup an ssh public/private key pair.
Copy and paste the contents of $HOME/.ssh/id_rsa.pub and paste them into deploy.yml -pubkey=your-public-ssh-key-here(deploy.yml : line 8). NOTE: Make sure that you do not use any " around the pubkey as this will cause problems.
Update resources as needed. Set the amount of RAM / CPU / disk space as needed.
Ensure the steps you follow in Deploy Commands are executed in the same directory your Deploy.yml is located in.
Deploy to Akash-
- Install Akash Binaries https://github.com/ovrclk/akash/releases/tag/v0.12.1
- Point To the Binaries In Your Path export PATH=$PATH:/path/to/directory
You will need an Akash wallet with at least 5 AKT in order to provide escrow to a provider for your deployment. These commands will have certain flags filled to keep the user experience as simple as possible and assume you already have an Akash wallet in your environment. If you do not follow the steps on the Akash Docs https://docs.akash.network/guides/wallet
Step 1: Create a certificate & deployment
After you run the akash tx deployment create command your client will spit out a json string. Within the string you will be given a dseq value.
Note: the dseq value given here cannot be used in order to deploy you must acquire your own.
Step 2: Export your DSEQ as an environment variable
Step 3: Make an order and view your bids
Once you run query market bid list you will receive bids from multiple different providers.
Simply select a provider from the list. To make the experience easier a provider was added to the following commands.
Step 4: Create your lease & send your manifest
Step 5: View your status and acquire port/URL
After running akash provider lease-status you should get
Finally to ssh in to your Ubuntu deployment run
Solana Validator Node
Step 1: Install the Solana release v1.6.10 on your machine
Please update your PATH environment variable to include the solana programs:
Check your version
Step 2: Configure Solana CLI
Confirm the Cluster is reachable
Confirm your installation
Set the config path to your keypair
Airdrop some SOL
Create Your Vote Account
Run the Validator Node
Run it in the background with Systemd
Since the port 22 is being opened as port 80 in order to allow for ssh, you must use a load balancer/reverse proxy to expose the remainder of the ports.