Skip to content

Commit

Permalink
new simplified version
Browse files Browse the repository at this point in the history
  • Loading branch information
shimpa1 committed Feb 3, 2025
1 parent 7ae5b4f commit f6e85a0
Show file tree
Hide file tree
Showing 9 changed files with 151 additions and 0 deletions.
23 changes: 23 additions & 0 deletions charts/console-api/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
24 changes: 24 additions & 0 deletions charts/console-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v2
name: console-api
description: A Helm chart for Kubernetes

# 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: "2.53.0"
41 changes: 41 additions & 0 deletions charts/console-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.appName }}-mainnet
namespace: {{ .Values.namespace }}
labels:
app: {{ .Values.appName }}-{{ .Values.chain }}
spec:
replicas: 1
selector:
matchLabels:
app: {{ .Values.appName }}-{{ .Values.chain }}
template:
metadata:
labels:
app: {{ .Values.appName }}-{{ .Values.chain }}
spec:
containers:
- name: {{ .Values.appName }}-{{ .Values.chain }}
image: ghcr.io/akash-network/console-api:2.53.0
imagePullPolicy: "Always"
command: ["node", "dist/server.js"]
ports:
- containerPort: 3000
name: api-port
protocol: TCP
env:
- name: PORT
value: "3000"
resources:
requests:
cpu: "1"
memory: "2Gi"
ephemeral-storage: "2Gi"
limits:
cpu: "1"
memory: "2Gi"
ephemeral-storage: "2Gi"
envFrom:
- secretRef:
name: {{ .Values.appName }}-{{ .Values.chain }}-secret
16 changes: 16 additions & 0 deletions charts/console-api/templates/doppler-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: secrets.doppler.com/v1alpha1
kind: DopplerSecret
metadata:
name: {{ .Values.appName }}-{{ .Values.chain }}-dopplersecret
namespace: doppler-operator-system
spec:
config: staging-mainnet
managedSecret:
name: {{ .Values.appName }}-{{ .Values.chain }}-secret
namespace: {{ .Values.namespace }}
type: Opaque
project: {{ .Values.appName }}
tokenSecret:
name: console-token-secret
verifyTLS: true

28 changes: 28 additions & 0 deletions charts/console-api/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Values.appName }}-{{ .Values.chain}}-ingress
namespace: {{ .Values.namespace }}
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 100m
nginx.ingress.kubernetes.io/proxy-connect-timeout: "140"
nginx.ingress.kubernetes.io/proxy-read-timeout: "140"
nginx.ingress.kubernetes.io/proxy-send-timeout: "140"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
ingressClassName: nginx
rules:
- host: {{ .Values.appName }}-{{ .Values.namespace }}-next.akash.network
http:
paths:
- backend:
service:
name: {{ .Values.appName }}-{{ .Values.chain }}-service
port:
name: api-port
path: /
pathType: Prefix
tls:
- hosts:
- {{ .Values.appName }}-{{ .Values.namespace }}-next.akash.network
secretName: {{ .Values.appName }}-{{ .Values.namespace }}-akash-network-tls
14 changes: 14 additions & 0 deletions charts/console-api/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.appName }}-{{ .Values.chain }}-service
namespace: {{ .Values.namespace }}
spec:
selector:
app: {{ .Values.appName }}-{{ .Values.chain }}
ports:
- protocol: TCP
port: 3000
targetPort: api-port
name: api-port
type: ClusterIP
1 change: 1 addition & 0 deletions charts/console-api/values-mainnet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
chain: mainnet
1 change: 1 addition & 0 deletions charts/console-api/values-sandbox.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
chain: sandbox
3 changes: 3 additions & 0 deletions charts/console-api/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
namespace: staging
appName: console-api

Check failure on line 3 in charts/console-api/values.yaml

View workflow job for this annotation

GitHub Actions / lint-helm

[empty-lines] too many blank lines (1 > 0)

0 comments on commit f6e85a0

Please sign in to comment.