Skip to content
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions charts/provider-inventory/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: nodejs-app
repository: file://../nodejs-app
version: 0.4.1
digest: sha256:94e236aa9486039f873f0eecce286baf1cf811fa57966a1807eb7d289c66dcea
generated: "2026-05-20T00:00:00.000000+00:00"
27 changes: 27 additions & 0 deletions charts/provider-inventory/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: v2
name: provider-inventory
description: Akash Provider-Inventory Helm Chart

# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
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.1.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
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.0"

dependencies:
- name: nodejs-app
version: 0.4.1
repository: "file://../nodejs-app"
8 changes: 8 additions & 0 deletions charts/provider-inventory/secret.sample.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: v1
kind: Secret
metadata:
name: console-token-secret
namespace: doppler-operator-system
type: Opaque
stringData:
serviceToken: <YOUR_SECRET>
7 changes: 7 additions & 0 deletions charts/provider-inventory/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Chart.Name }}-{{ .Values.chain }}-config
data:
{{ include "app.env" . | indent 2 }}
NETWORK: {{ .Values.chain }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Chart.Name }}-{{ .Values.chain }}-providers-sync
namespace: {{ .Release.Namespace }}
labels:
app: {{ .Chart.Name }}-{{ .Values.chain }}-providers-sync
annotations:
secrets.doppler.com/reload: 'true'
spec:
replicas: {{ .Values.providersSync.replicas | default 1 }}
strategy:
type: Recreate
selector:
matchLabels:
app: {{ .Chart.Name }}-{{ .Values.chain }}-providers-sync
template:
metadata:
labels:
app: {{ .Chart.Name }}-{{ .Values.chain }}-providers-sync
spec:
containers:
- name: {{ .Chart.Name }}-{{ .Values.chain }}-providers-sync
image: ghcr.io/akash-network/console-provider-inventory:{{ .Values.appVersion }}
imagePullPolicy: "Always"
ports:
- containerPort: 3000
name: api-port
protocol: TCP
envFrom:
- secretRef:
name: {{ .Chart.Name }}-{{ .Values.chain }}-secret
- configMapRef:
name: {{ .Chart.Name }}-{{ .Values.chain }}-config
env:
- name: OTEL_SERVICE_NAME
value: {{ .Chart.Name }}-{{ .Values.chain }}-providers-sync
- name: INTERFACE
value: "providers-sync"
resources:
{{- toYaml .Values.providersSync.resources | nindent 12 }}
readinessProbe:
httpGet:
path: /private/v1/healthz/readiness
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 10
failureThreshold: 3
livenessProbe:
httpGet:
path: /private/v1/healthz/liveness
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 10
failureThreshold: 3
55 changes: 55 additions & 0 deletions charts/provider-inventory/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Chart.Name }}-{{ .Values.chain }}
namespace: {{ .Release.Namespace }}
labels:
app: {{ .Chart.Name }}-{{ .Values.chain }}
annotations:
secrets.doppler.com/reload: 'true'
spec:
replicas: {{ .Values.replicas | default 1 }}
selector:
matchLabels:
app: {{ .Chart.Name }}-{{ .Values.chain }}
template:
metadata:
labels:
app: {{ .Chart.Name }}-{{ .Values.chain }}
spec:
containers:
- name: {{ .Chart.Name }}-{{ .Values.chain }}
image: ghcr.io/akash-network/console-provider-inventory:{{ .Values.appVersion }}
imagePullPolicy: "Always"
ports:
- containerPort: 3000
name: api-port
protocol: TCP
envFrom:
- secretRef:
name: {{ .Chart.Name }}-{{ .Values.chain }}-secret
- configMapRef:
name: {{ .Chart.Name }}-{{ .Values.chain }}-config
env:
- name: OTEL_SERVICE_NAME
value: {{ .Chart.Name }}-{{ .Values.chain }}
- name: INTERFACE
value: "rest"
resources:
{{- toYaml .Values.resources | nindent 12 }}
readinessProbe:
httpGet:
path: /private/v1/healthz/readiness
port: 3000
initialDelaySeconds: 5
periodSeconds: 5
timeoutSeconds: 5
failureThreshold: 3
livenessProbe:
httpGet:
path: /private/v1/healthz/liveness
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
15 changes: 15 additions & 0 deletions charts/provider-inventory/templates/doppler-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: secrets.doppler.com/v1alpha1
kind: DopplerSecret
metadata:
name: {{ .Chart.Name }}-{{ .Release.Namespace }}-{{ .Values.chain }}-dopplersecret
namespace: doppler-operator-system
spec:
config: {{ .Release.Namespace }}
managedSecret:
name: {{ .Chart.Name }}-{{ .Values.chain }}-secret
namespace: {{ .Release.Namespace }}
type: Opaque
project: {{ .Chart.Name }}
tokenSecret:
name: console-token-secret
verifyTLS: true
40 changes: 40 additions & 0 deletions charts/provider-inventory/templates/job-migrations.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
apiVersion: batch/v1
kind: Job
metadata:
name: {{ .Chart.Name }}-{{ .Values.chain }}-migrations
namespace: {{ .Release.Namespace }}
labels:
app: {{ .Chart.Name }}-{{ .Values.chain }}-migrations
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-weight": "0"
"helm.sh/hook-delete-policy": before-hook-creation,hook-succeeded
spec:
backoffLimit: {{ .Values.migrations.backoffLimit | default 1 }}
template:
metadata:
labels:
app: {{ .Chart.Name }}-{{ .Values.chain }}-migrations
spec:
restartPolicy: Never
containers:
- name: {{ .Chart.Name }}-{{ .Values.chain }}-migrations
image: ghcr.io/akash-network/console-provider-inventory:{{ .Values.appVersion }}
imagePullPolicy: "Always"
command: {{ .Values.migrations.command | toJson }}
envFrom:
- secretRef:
name: {{ .Chart.Name }}-{{ .Values.chain }}-secret
- secretRef:
name: {{ .Chart.Name }}-{{ .Values.chain }}-migrations-secret
env:
- name: NETWORK
value: {{ .Values.chain | quote }}
- name: DEPLOYMENT_ENV
value: {{ .Values.deploymentEnv | quote }}
- name: NODE_OPTIONS
value: >-
--enable-source-maps
--stack-trace-limit=25
resources:
{{- toYaml .Values.migrations.resources | nindent 12 }}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: secrets.doppler.com/v1alpha1
kind: DopplerSecret
metadata:
name: {{ .Chart.Name }}-{{ .Release.Namespace }}-{{ .Values.chain }}-migrations-dopplersecret
namespace: doppler-operator-system
annotations:
"helm.sh/hook": pre-install,pre-upgrade
"helm.sh/hook-weight": "-10"
"helm.sh/hook-delete-policy": before-hook-creation
spec:
config: {{ .Values.migrations.dopplerConfig | default (printf "%s_migrations" .Release.Namespace) }}
managedSecret:
name: {{ .Chart.Name }}-{{ .Values.chain }}-migrations-secret
namespace: {{ .Release.Namespace }}
type: Opaque
project: {{ .Chart.Name }}
tokenSecret:
name: console-token-secret
verifyTLS: true
14 changes: 14 additions & 0 deletions charts/provider-inventory/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Chart.Name }}-{{ .Values.chain }}-service
namespace: {{ .Release.Namespace }}
spec:
selector:
app: {{ .Chart.Name }}-{{ .Values.chain }}
ports:
- protocol: TCP
port: 3000
targetPort: api-port
name: api-port
type: ClusterIP
45 changes: 45 additions & 0 deletions charts/provider-inventory/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
appVersion: "0.1.0"

deploymentEnv: staging
chain: sandbox

replicas: 1

resources:
limits:
cpu: 1
ephemeral-storage: 200Mi
memory: 2Gi
requests:
cpu: 1
ephemeral-storage: 100Mi
memory: 1Gi

providersSync:
replicas: 1
resources:
limits:
cpu: 1
ephemeral-storage: 200Mi
memory: 1Gi
requests:
cpu: 500m
ephemeral-storage: 100Mi
memory: 512Mi

migrations:
command: ["npm", "run", "migration:exec"]
backoffLimit: 1
# dopplerConfig: "" # defaults to "{Release.Namespace}-migrations"
resources:
limits:
cpu: 500m
ephemeral-storage: 100Mi
memory: 512Mi
requests:
cpu: 200m
ephemeral-storage: 50Mi
memory: 256Mi

otel:
enabled: true
Loading