Skip to content

Instantly share code, notes, and snippets.

@arno01
Last active April 8, 2022 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arno01/a000fd612f12b1297fb25d0573a9b2c9 to your computer and use it in GitHub Desktop.
Save arno01/a000fd612f12b1297fb25d0573a9b2c9 to your computer and use it in GitHub Desktop.
  1. Go to https://nodes.presearch.org to learn more about nodes and create an account.
  2. Go go https://nodes.presearch.org/ to grab your registration code
  3. replace <YOUR_REGISTRATION_CODE_HERE> in your deploy.yaml file:
  • deploy.yaml:
---
version: "2.0"

services:
  presearch:
    image: presearch/node:0.10.1-testnet
    env:
      - 'REGISTRATION_CODE=<YOUR_REGISTRATION_CODE_HERE>'
    # need to expose at least 1 port otherwise "Error: invalid manifest: zero global services"
    expose:
      - port: 8080
        as: 80
        proto: tcp
        to:
          - global: true

profiles:
  compute:
    presearch:
      resources:
        cpu:
          units: 1.0
        memory:
          size: 512Mi
        storage:
          size: 1Gi
  placement:
    akash:
      attributes:
        host: akash
      signedBy:
        anyOf:
          - "akash1365yvmc4s7awdyj3n2sav7xfx76adc6dnmlx63"
      pricing:
        presearch:
          denom: uakt
          amount: 100

deployment:
  presearch:
    akash:
      profile: presearch
      count: 1

Refs.

When akash v0.15 gets released, you can leverage the persistent storage for /app/node mount point.

When migrating the node, make sure to copy /app/node/.keys directory over to the new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment