Skip to content

Commit

Permalink
updating chart installation instructions and publish package.
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Gutierrez <[email protected]>
  • Loading branch information
AlfredoG87 committed Nov 25, 2024
1 parent b8825da commit 48b3909
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release-push-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,4 @@ jobs:
- name: Push helm chart
run: |
helm push hedera-block-node-chart-${{ env.VERSION }}.tgz oci://ghcr.io/hashgraph/hedera-block-node
helm push hedera-block-node-chart-${{ env.VERSION }}.tgz oci://ghcr.io/hashgraph/hedera-block-node/charts
24 changes: 18 additions & 6 deletions charts/hedera-block-node/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,36 @@ Installs the Hedera Block Node on a Kubernetes cluster.
- Helm 3+
- Kubernetes 1.29+

Set environment variables that will be used for the remainder of the document:
Set environment variables that will be used for the remainder of the document, replacing the values with the appropriate values for your environment: bn1 is short for block-node-1, but you can name you release as you wish. And use the version that you want to install.

```bash
export RELEASE="bn1"
export VERSION="0.3.0-SNAPSHOT"
```

## Template
To generate the K8 manifest files without installing the chart:
To generate the K8 manifest files without installing the chart, you need to clone this repo and navigate to `/charts` folder.
```bash
helm template --name-template my-bn hedera-block-node/ --dry-run --output-dir out
```

## Install
To install the chart:
## Install using released chart

To pull the packaged chart from public repo:
```bash
helm pull oci://ghcr.io/hashgraph/hedera-block-node/charts/hedera-block-node-chart --version "${VERSION}"
```

To install the chart with default values:
```bash
helm repo add hedera-block-node https://hashgraph.github.io/hedera-block-node/charts
helm install "${RELEASE}" hedera-block-node/hedera-block-node -f <path-to-custom-values-file>
helm install "${RELEASE}" hedera-block-node/charts/hedera-block-node-chart-$VERSION.tgz
```

To install the chart with custom values:
```bash
helm install "${RELEASE}" hedera-block-node/charts/hedera-block-node-chart-$VERSION.tgz -f <path-to-custom-values-file>
```

*Note:* If using the chart directly after cloning the github repo, there is no need to add the repo. and install can be directly.
Assuming you are at the root folder of the repo.
```bash
Expand Down

0 comments on commit 48b3909

Please sign in to comment.