Skip to content

Instantly share code, notes, and snippets.

@andy108369
andy108369 / sifchain-validator-akash.yml
Last active March 19, 2023 10:07
SDL Deployment manifest to run Sifchain validator in Akash decentralized cloud
# based on https://github.com/ovrclk/cosmos-omnibus/blob/master/sifchain/deploy.yml
# https://gist.github.com/andy108369/a869d1d43cd8c67c0700c7acebc36838
# 19 March 2023
#
# - 1. upload GPG-encrypted (use `--symmetric` flag) node_key.json & priv_validator_key.json to your Storj or Filebase S3-compatible bucket
# - 2. update REDACTED fields
# - 3. deploy it in Akash Network https://docs.akash.network/guides
---
version: "2.0"
---
version: "2.0"
services:
txgen-app:
image: busybox
command:
- "sh"
- "-c"
args:

When the user has a certificate generated in the future he gets the following error:

Error while sending manifest to provider. request to https://provider.akash.pro:8443/deployment/7680977/manifest failed, reason: socket hang up

Or

Error while sending manifest to provider. request to https://d3akash.cloud:8443/deployment/7678683/manifest failed, reason: read ECONNRESET

His certificate is valid in the future

#!/usr/bin/env bash
# Filename: clean-stale-akash-resources.sh
# Author: andrey.arapov@nixaid.com
# Version: 1.3 - 19 June 2023
# Source: https://gist.github.com/andy108369/f211bf6c06f2a6e3635b20bdfb9f0fca
# Ref. https://docs.akash.network/providers/build-a-cloud-provider/akash-provider-troubleshooting/dangling-deployments
# Make sure you have kubectl, akash and provider-services binaries.
#
# akash https://github.com/ovrclk/akash/releases/latest
@andy108369
andy108369 / upgrade-postgresql-13-to-14-container.md
Last active September 13, 2022 10:33
Upgrade PostgreSQL from 13 to 14 in a container

See the working PostgreSQL deployment SDL manifest for Akash Network in the comments section.

Upgrade PostgreSQL from 13 to 14 in a container

1. Start postgresql:14 container with sleep infinity entrypoint

with the data mounted over /var/lib/postgresql/data directory.

Make sure to either use PGDATA=/var/lib/postgresql/data/<some-other-dir> or rmdir /var/lib/postgresql/data/lost+found when having /var/lib/postgresql/data a mountpoint over a device (say Ceph's RBD), due to initdb not willing to work with the mountpoints (but can be tricked to by removing lost+found directory! :-)).
More here https://www.postgresql.org/message-id/flat/21269e094e35a1b32c426408cc0a4408%40nixaid.com#e4510c5b090c2737e68cfdcf8223020a

Final work is here and a working SDL manifest

What's below on this page is outdated:


asciicast

  1. Init the DB with postgres:adminpass creds
# app-stunnel-client.yml
# https://github.com/ovrclk/stunnel-proxy
---
version: "2.0"
services:
stunnel-client:
image: andrey01/stunnel-proxy:v0.0.1
env:
- PSK=RHFVUmtrQ0EyVFhVanlmVTJZZXgK
# app-stunnel-server.yml
# https://github.com/ovrclk/stunnel-proxy
---
version: "2.0"
services:
app:
image: traefik/whoami
expose:
- port: 80

Enabling Ceph dashboard

image


Make sure it is enabled in the config

Get the admin password: