-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from p2p-org/wip/namada-indexer-chart
namada indexer helm chart
- Loading branch information
Showing
20 changed files
with
1,114 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
|
||
# # Ignore all .tgz files except in charts directory | ||
# /charts/*.tgz | ||
# !charts/*.tgz | ||
|
||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
|
||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
|
||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ | ||
|
||
# Project specific | ||
.releaserc.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const chartName = 'namada-indexer'; | ||
const chartPath = __dirname; | ||
|
||
module.exports = { | ||
extends: '../.github/chart-release.config.js', | ||
tagFormat: 'namada-indexer-v${version}', | ||
plugins: [ | ||
'@semantic-release/commit-analyzer', | ||
'@semantic-release/release-notes-generator', | ||
'@semantic-release/changelog', | ||
'@semantic-release/git', | ||
'@semantic-release/github', | ||
['@semantic-release/exec', { | ||
prepareCmd: 'sed -i "s/^version:.*$/version: ${nextRelease.version}/" Chart.yaml && helm package . --version ${nextRelease.version} --app-version ${nextRelease.version} && mv *.tgz ../' | ||
}] | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
dependencies: | ||
- name: postgres-operator | ||
repository: https://opensource.zalando.com/postgres-operator/charts/postgres-operator | ||
version: 1.13.0 | ||
- name: redis | ||
repository: https://charts.bitnami.com/bitnami | ||
version: 20.5.0 | ||
digest: sha256:8336dfdf07439b8fb5ff7e54910d67b4833b1a02394bfddb438241eb827c9a17 | ||
generated: "2024-12-11T14:02:20.240034Z" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: v2 | ||
name: namada-indexer | ||
description: A Helm chart for deploying a namada indexer | ||
type: application | ||
version: 0.0.0-development | ||
appVersion: "1.0" | ||
|
||
dependencies: | ||
- name: postgres-operator | ||
version: "1.13.0" | ||
repository: "https://opensource.zalando.com/postgres-operator/charts/postgres-operator" | ||
condition: postgresOperator.install.enabled | ||
- name: redis | ||
version: "20.5.0" | ||
repository: "https://charts.bitnami.com/bitnami" | ||
condition: redis.install.enabled |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,166 @@ | ||
# Namada Indexer Helm Chart | ||
|
||
A Helm chart for deploying the Namada blockchain indexer and its components. | ||
|
||
## Overview | ||
|
||
This chart deploys a complete Namada indexing solution including: | ||
|
||
- Chain indexer | ||
- Governance indexer | ||
- PoS indexer | ||
- Rewards indexer | ||
- Parameters indexer | ||
- Transaction indexer | ||
- Web API server | ||
- PostgreSQL database (optional) | ||
- Redis cache (optional) | ||
|
||
## Prerequisites | ||
|
||
- Helm 3.2.0+ | ||
- Ingress Controller (nginx) | ||
- Cert-manager (optional, for TLS) | ||
|
||
## Installation | ||
|
||
1. Add required Helm repositories: | ||
|
||
```bash | ||
helm repo add bitnami https://charts.bitnami.com/bitnami | ||
helm repo add zalando https://opensource.zalando.com/postgres-operator/charts/postgres-operator | ||
helm repo update | ||
``` | ||
|
||
2. Update chart dependencies: | ||
|
||
```bash | ||
helm dependency update . | ||
helm dependency build . | ||
``` | ||
|
||
3. Install the chart: | ||
|
||
```bash | ||
helm install namada-indexer . \ | ||
--create-namespace \ | ||
--namespace namada-indexer \ | ||
-f values.yaml | ||
``` | ||
|
||
For a basic installation with default values: | ||
|
||
```bash | ||
helm install namada-indexer . \ | ||
--create-namespace \ | ||
--namespace namada-indexer | ||
``` | ||
|
||
To upgrade an existing installation: | ||
|
||
```bash | ||
helm upgrade namada-indexer . \ | ||
--namespace namada-indexer \ | ||
-f values.yaml | ||
``` | ||
|
||
## Configuration | ||
|
||
### Database Configuration | ||
|
||
#### Option 1: Built-in PostgreSQL | ||
|
||
```yaml | ||
postgresOperator: | ||
install: | ||
enabled: true | ||
enabled: true | ||
teamId: "namada" | ||
volume: | ||
size: 100Gi | ||
storageClass: "oci-bv" | ||
numberOfInstances: 3 | ||
``` | ||
#### Option 2: External PostgreSQL | ||
```yaml | ||
postgresOperator: | ||
install: | ||
enabled: false | ||
enabled: false | ||
|
||
externalPostgres: | ||
enabled: true | ||
host: "your-postgres-host" | ||
port: "5432" | ||
credentialSecret: | ||
name: "your-postgres-secret" | ||
``` | ||
### Redis Configuration | ||
#### Option 1: Built-in Redis (Default) | ||
```yaml | ||
redis: | ||
install: | ||
enabled: true | ||
enabled: true | ||
architecture: replication | ||
sentinel: | ||
enabled: true | ||
quorum: 2 | ||
replica: | ||
replicaCount: 3 | ||
``` | ||
#### Option 2: External Redis | ||
```yaml | ||
redis: | ||
install: | ||
enabled: false | ||
enabled: false | ||
|
||
externalRedis: | ||
enabled: true | ||
host: "your-redis-host" | ||
port: "6379" | ||
``` | ||
### Indexer Configuration | ||
```yaml | ||
configmaps: | ||
config: | ||
data: | ||
TENDERMINT_URL: "http://your-tendermint-rpc:26657/" | ||
|
||
containers: | ||
chain: | ||
resources: | ||
limits: | ||
cpu: "1" | ||
memory: "1Gi" | ||
webserver: | ||
ingress: | ||
enabled: true | ||
hosts: | ||
- host: api.your-domain.com | ||
``` | ||
## Dependencies | ||
This chart depends on: | ||
- PostgreSQL Operator (optional) | ||
- Redis (optional) | ||
## Contributing | ||
[Contributing guidelines](CONTRIBUTING.md) | ||
## License | ||
Apache 2.0 |
Oops, something went wrong.