Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moved lease logs section up in the doc for better visability #192

Merged
merged 1 commit into from
Jun 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 16 additions & 19 deletions guides/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Because of this, it is important to type the commands into a terminal where the
| :--- | :--- |
| `AKASH_NET` | Akash network configuration base URL. |
| `AKASH_VERSION` | Akash version to install for your network. |
| `AKASH_CHAINID` | Chain ID of the Akash network for [IBC](../reference/akashnet-relayer.md). |
| `AKASH_CHAIN_ID` | Chain ID of the Akash network for [IBC](../reference/akashnet-relayer.md). |
| `AKASH_NODE` | Akash RPC endpoint URL and port number. |
| `AKASH_ACCOUNT_ADDRESS` | The address of your account. See [here](https://github.com/ovrclk/docs/tree/b65f668b212ad1976fb976ad84a9104a9af29770/guides/wallet/README.md#account-address). |
| `AKASH_KEYRING_BACKEND` | Keyring backend to use for local keys. See [here](https://github.com/ovrclk/docs/tree/b65f668b212ad1976fb976ad84a9104a9af29770/guides/wallet/README.md) |
Expand Down Expand Up @@ -742,6 +742,20 @@ You should see a response similar to:

You can access the application by visiting the hostnames mapped to your deployment. In above example, its [http://rga3h05jetf9h3p6dbk62m19ck.ingress.ewr1p0.mainnet.akashian.io](http://rga3h05jetf9h3p6dbk62m19ck.ingress.ewr1p0.mainnet.akashian.io)

## View your logs

You can view logs emitted from the Kubernetes pods to debug issues, watch progress, or otherwise show the state of the application with the following:

```bash
akash provider lease-logs --node $AKASH_NODE --from $AKASH_KEY_NAME --provider $AKASH_PROVIDER --dseq $AKASH_DSEQ
```

You can view events emitted from Kubernetes, such as if a pod is failing, restarting, docker image has been pulled, etc. with the following:

```bash
akash provider lease-events --node $AKASH_NODE --dseq $AKASH_DSEQ --from $AKASH_KEY_NAME --provider $AKASH_PROVIDER
```

## Update your deployment

Updating active deployments is a two step process. First, edit your deployment YAML file with the desired changes.
Expand Down Expand Up @@ -1223,21 +1237,4 @@ pagination:
total: "0"
```

As you can notice from the above, you lease will be marked `closed`.

## View your logs

You can view your application logs to debug issues or watch progress like so:

```bash
akash \
--home "$AKASH_HOME" \
--node "$AKASH_NODE" \
provider lease-logs \
--dseq "$AKASH_DSEQ" \
--gseq "$AKASH_GSEQ" \
--oseq "$AKASH_OSEQ" \
--provider "$AKASH_PROVIDER" \
--from "$AKASH_KEY_NAME"
```

As you can notice from the above, you lease will be marked `closed`.