The following provides an overview of the steps necessary to upgrade your Akash provider to version 0.5.4
and to enable Feature Discovery:
- Akash Hostname Operator Upgrade
- Akash Inventory Operator Install/Upgrade
- Akash IP Operator Upgrade (If Applicable)
- Update Ingress Controller
- Akash Provider Upgrade
- Verifications
- Testing
GPU PROVIDERS - ensure that your GPU models exist in this database/JSON file before proceeding. If your GPU models do not yet exist in this file - please first follow the procedure outlined in this GPU Configuration Integration Guide to capture your GPU vendor/model IDs and then allow the Akash core team to populate the JSON file prior to upgrading your provider.
Akash Hostname Operator Upgrade
Akash Inventory Operator Install/Upgrade
NOTE - the Inventory Operator is now required on ALL Akash Providers. Previously this operator was only required when the Provider hosted persistent storage. But the operator is now mandated on all providers.
NOTE - if your provider hosts persistent storage, ensure that the CEPH cluster is in a healthy state prior to upgrading the Akash Inventory Operator
Default Helm Chart - values.yaml file
- The
values.yaml
file for the inventory operator defaults are as follows
Non-Persistent Storage Providers
Persistent Storage Providers
- Use these commands to install the inventory operator with the correct cluster storage settings
- In the following command example we are updating the chart with
beta3
persistent storage type such as -inventoryConfig.cluster_storage[1]=beta3
. Adjust as necessary for your needs. - The
default
label can be used and left as is in all circumstances.
Akash IP Operator Upgrade (If Applicable)
NOTE - the IP Operator is only necessary if your Akash Provider provides IP Leases
Update Ingress Controller
NOTE - this step must be completed by all providers to expose the Feature Discovery gRPC port
NOTE - ensure to open port
8444
on your firewall if necessary as well
The Ingress Controller rules have been updated to include Feature Discovery destinations and mainly port 8444
. Update your ingress controller to ensure they are current via the instructions in this doc section.
Akash Provider Upgrade
NOTE - these instructions assume your Akash Provider settings are stored in
/root/provider/provider.yaml
. If this is not the cause - dump current provider settings prior to initiating this process via the following command and ensure thehelm install
command points to the location of this file.
helm -n akash-services get values akash-provider > provider.yaml
NOTE - provider GPU attributes must now adhere to the naming conventions in this JSON file. Your attributes may need to be updated to follow these standards. If your provider attributes do not adhere to the naming conventions in this JSON file it may not bid when specific models are included in the SDL. If the GPU model has multiple memory options the attributes should be in the form such as the following where again the model and the RAM spec use the nomenclatures of the JSON file.
NOTE - if your provider uses a custom price script - ensure to add pointer to that script in the
helm install
command such as the following. Note that this syntax assumes the pricing script resides in the/root/provider
directory.Begin by replacing the bid price script with the latest version:
mv price_script_generic.sh price_script_generic.sh.old
wget https://raw.githubusercontent.com/akash-network/helm-charts/main/charts/akash-provider/scripts/price_script_generic.sh
And then use
set
option below in thehelm install
command
--set bidpricescript="$(cat /root/provider/price_script_generic.sh | openssl base64 -A)"
Verifications
- Verify the status of the Akash Provider and Akash Operators following the upgrade
Example/Expected Output
Note - pay particular attention to the presence of the
operator-inventory-hardware-discovery
. One such pod should be spawned for each Kubernetes worker node.
Testing
Test your Akash Provider’s Feature Discovery functionality via the use of gRPC CuRL and examples provided below. If you do not have gRPC CuRL installed - follow the instructions in this guide to install via brew.
Template
- Replace
<PROVIDER-IP-ADDRESS>
with actual