Running a lava provider on Kubernetes is a 2 step process.
- Run the provider using the Helm chart
- Create a staking transaction for the provider
helm install myprovider \
oci://us-central1-docker.pkg.dev/lavanet-public/charts/lava-provider \
--values myvalues.yaml
Before running the provider we need to create a kubernetes secret with your account key (lavad keys export ...
) and the password.
Please see the secret.example.yaml file for an example.
To run the Helm chart you need to provider some REQUIRED
values. Anything marked at required in the values.yaml file is required.
Please see /examples/provider/values.example.yaml file for an example for what values you will need to provide.
Please see our docs for more information on configuration.
The configYaml
section in the /examples/provider/values.example.yaml file has an example config for a provider that works on LAV1
Once you deploy the provider into kubernetes using the helm file, and the deployment is marked as ready and running by kubernetes you can stake your provider.
lavad tx pairing stake-provider [chain-id] [amount] [endpoint endpoint ...] [geolocation] [flags]
Check the output for the status of the staking operation. A successful operation will have a code 0
.
chain-id
- The ID of the serviced chain (e.g.,COS4
orFTM250
).amount
- Stake amount for the specific chain (e.g.,2010ulava
).endpoint
- Provider host listener, composed ofprovider-host:provider-port,geolocation
.geolocation
- Indicates the geographical location where the process is located (e.g.,1
for US or2
for EU).
USC = 1; // US-Center
EU = 2; // Europe
USE = 4; // US-East
USW = 8; // US-West
AF = 16; // Africa
AS = 32; // Asia
AU = 64; // (Australia, includes NZ)
GL = 65535; // Global
--from
- The account to be used for the provider staking (e.g.,my_account
).--provider-moniker
- Provider’s public name--keyring-backend
- A keyring-backend of your choosing (e.g.,test
).--chain-id
- The chain_id of the network (e.g.,lava-testnet-2
).--gas
- The gas limit for the transaction (e.g.,"auto"
).--gas-adjustment
- The gas adjustment factor (e.g.,"1.5"
).--node
- A RPC node for Lava (e.g.,https://public-rpc-testnet2.lavanet.xyz:443/rpc/
).
For full docs on how to stake as a provider please see our docs: https://docs.lavanet.xyz/provider-setup#step-2-stake-as-provider
- Provider setup docs: https://docs.lavanet.xyz/provider-setup#step-2-stake-as-provider