Akash Guidebook
Search…
⌃K
Links

Relevant SDL Declaration and Example Use

For the purpose of demonstrating the use of fractional uAKT we will utilize the popular Hello World web application and SDL that can be found in the Awesome Akash repository. The example SDL file will be modified to take advantage of the new fractional uAKT option.
The Cloudmos Deploy application will be used to launch the deployment.

Example Fractional uAKT Use in Cloudmos Deploy

Within Cloudmos Deploy:
  • Create a new deployment
  • Select Hello-world from the available templates

Edit the Template with a Fractional uAKT Amount

  • Update the template to use a fractional uAKT amount of 100.1 as seen in the capture
  • Additionally ensure that any signBy and attributes sections are removed to mimic the screenshot below
  • The necessary template is also shown in text below the screenshot
  • Proceed thru the remaining steps to complete the deployment
  • The SDL should be as follows post update
---
version: "2.0"
services:
web:
image: tombeynon/akash-hello-world:release-v0.1.1
expose:
- port: 80
as: 80
to:
- global: true
profiles:
compute:
web:
resources:
cpu:
units: 0.5
memory:
size: 512Mi
storage:
size: 512Mi
placement:
dcloud:
attributes:
host: akash
pricing:
web:
denom: uakt
amount: 100.1
deployment:
web:
dcloud:
profile: web
count: 1

Verification of Fractional uAKT Use

The verification of fractional uAKT functionality comes in two forms:
  1. 1.
    The deployment progress and will eventually complete with a fractional uAKT per block price of 100.1
  2. 2.
    The bids received from providers come in fractional uAKT amounts
Continue with these steps:
  • Select a fractional uAKT bid from a provider and then select “ACCEPT BID”
  • Proceed the remaining steps of the deployment process
  • When the deployment completes - we have successfully tested fractional uAKT