Skip to content

Commit

Permalink
attempt to fix key import
Browse files Browse the repository at this point in the history
  • Loading branch information
sacreman committed Sep 15, 2021
1 parent d47fd6b commit 54046bc
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ the latest versions of the packages. You can then run `helm search repo akash` t
To install the provider chart make sure you have your [provider-cert.pem](https://docs.akash.network/operations/provider#creating-the-provider-on-the-blockchain) in the current directory and then set the env vars below and install the chart.

```
akash_key=<AkashPublicAddress>
akash_password=<mypassword>
helm install provider akash/provider --set akash_provider.key=$akash_key --set akash_provider.keysecret=$akash_password --set-file akash_provider.providercert=provider-cert.pem
export AKASH_KEY_NAME=<mykeyname>
export AKASH_ACCOUNT_ADDRESS="$(akash keys show $AKASH_KEY_NAME -a)"
helm install provider akash/provider --set akash_client.from=$AKASH_ACCOUNT_ADDRESS --set-file akash_provider.providercert=provider-cert.pem --set-file akash_provider.key=key.pem
```

To uninstall the chart:
Expand Down
2 changes: 1 addition & 1 deletion charts/provider/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.20.0
version: 0.21.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
3 changes: 1 addition & 2 deletions charts/provider/templates/configmap-boot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ data:
##
# Import key
##
/bin/akash --home="$AKASH_HOME" keys import --keyring-backend="$AKASH_KEYRING_BACKEND" "$AKASH_FROM" \
"$AKASH_BOOT_KEYS/key.txt" < "$AKASH_BOOT_KEYS/key-pass.txt"
/bin/akash --home="$AKASH_HOME" keys import --keyring-backend="$AKASH_KEYRING_BACKEND" "$AKASH_FROM" "$AKASH_BOOT_KEYS/key.txt"
##
# Run daemon
Expand Down
2 changes: 0 additions & 2 deletions charts/provider/templates/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,3 @@ stringData:
{{ .Values.akash_provider.providercert }}
key.txt: |
{{ .Values.akash_provider.key }}
key-pass.txt: |
{{ .Values.akash_provider.keysecret }}
5 changes: 2 additions & 3 deletions charts/provider/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,15 @@ service:

akash_client:
home: "/home"
from: "main"
from:
node: "http://135.181.60.250:26657"
chain-id: "akashnet-2"
keyring-backend: "test"
trust-node: "true"

akash_provider:
key:
keysecret:
providercert:
key:
ingress-static-hosts: false
ingress-domain: "example.com"
ingress-expose-lb-hosts: false
Expand Down

0 comments on commit 54046bc

Please sign in to comment.