Skip to content

Instantly share code, notes, and snippets.

@andy108369
Created July 29, 2022 12:06
Show Gist options
  • Save andy108369/514ad62ba00c0a0f47254c9ba07432de to your computer and use it in GitHub Desktop.
Save andy108369/514ad62ba00c0a0f47254c9ba07432de to your computer and use it in GitHub Desktop.
beta3 NVME persistent storage deployment manifest example

Persistent storage deployment manifest (SDL) example.

It deploys an app with the 10GiB of persistent storage mounted over /opt/data path.

The image used ubuntu:22.04 with sleep infinity, so it does nothing, just sleeps.. So you can akash provider lease-shell into your deployment and inspect the storage.

---
version: "2.0"

services:
  sleep:
    image: ubuntu:22.04
    command:
      - "sh"
      - "-c"
    args:
      - sleep infinity
    expose:
      - port: 8080
        as: 80
        to:
          - global: true
    params:
      storage:
        data:
          mount: /opt/data

profiles:
  compute:
    global:
      resources:
        cpu:
          units: 1.0
        memory:
          size: 512Mi
        storage:
          - size: 768Mi
          - name: data
            size: 10Gi
            attributes:
              persistent: true
              class: beta3
  placement:
    akash:
      pricing:
        global:
          denom: uakt
          amount: 100000

deployment:
  sleep:
    akash:
      profile: global
      count: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment