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

new simplified version of console-api helm charts #313

Open
wants to merge 27 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 17 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
f6e85a0
new simplified version
shimpa1 Feb 3, 2025
709d666
fixed Chart.yaml
shimpa1 Feb 3, 2025
9760255
fixed extra spaces causing linting to fail
shimpa1 Feb 3, 2025
26d6d72
fixed indentation in deployment.yaml
shimpa1 Feb 3, 2025
ecf3e29
fix deployment.yaml
shimpa1 Feb 3, 2025
0b642ae
fix deployment.yaml
shimpa1 Feb 3, 2025
5c5ff8b
first working version
shimpa1 Feb 4, 2025
6f7bc30
first working version
shimpa1 Feb 4, 2025
58dddcc
added doppler config var, added imagePullPolicy var, added image var,…
shimpa1 Feb 5, 2025
b7b7132
added doppler config var, added imagePullPolicy var, added image var,…
shimpa1 Feb 5, 2025
f0c1485
added doppler config var, added imagePullPolicy var, added image var,…
shimpa1 Feb 5, 2025
9fa1609
first working version of provider-console
shimpa1 Feb 5, 2025
c6561d8
first working version of provider-console-api
shimpa1 Feb 5, 2025
3451a80
done with all deployments
shimpa1 Feb 5, 2025
4569e7e
removed temporary file
shimpa1 Feb 5, 2025
29b41c5
minor fixes
shimpa1 Feb 6, 2025
93566a6
fixed provider-console/template/ingress.yaml
shimpa1 Feb 6, 2025
2b2ddde
fixed doppler-secret.yaml
shimpa1 Feb 7, 2025
99e000e
fixed doppler-secret.yaml
shimpa1 Feb 7, 2025
c0f4690
fixed doppler-secret.yaml
shimpa1 Feb 8, 2025
090d095
modified console-api
shimpa1 Feb 11, 2025
7e655a5
added command check to deployment.yaml
shimpa1 Feb 11, 2025
3c21170
minor fixes
shimpa1 Feb 11, 2025
1014425
new image version
shimpa1 Feb 12, 2025
a4392b1
removed -next from hostName:
shimpa1 Feb 12, 2025
f7b002e
fixed console-api/templates/doppler-secret.yaml
shimpa1 Feb 12, 2025
49e8e8e
fixed console-api
shimpa1 Feb 12, 2025
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
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/
22 changes: 22 additions & 0 deletions charts/console-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: v2
name: console-api
description: Akash Console-API 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: "2.56.0"
8 changes: 8 additions & 0 deletions charts/console-api/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>
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 }}-{{ .Values.chain }}
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: {{ .Values.image }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
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
17 changes: 17 additions & 0 deletions charts/console-api/templates/doppler-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{{- if and .Values.doppler.project .Values.doppler.config }}
apiVersion: secrets.doppler.com/v1alpha1
kind: DopplerSecret
metadata:
name: {{ .Values.appName }}-{{ .Values.chain }}-dopplersecret
namespace: doppler-operator-system
spec:
config: {{ .Values.dopplerConfig }}
managedSecret:
name: {{ .Values.appName }}-{{ .Values.chain }}-secret
namespace: {{ .Values.namespace }}
type: Opaque
project: {{ .Values.doppler.project }}
tokenSecret:
name: console-token-secret
verifyTLS: true
{{- end }}
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.hostName }}
http:
paths:
- backend:
service:
name: {{ .Values.appName }}-{{ .Values.chain }}-service
port:
name: api-port
path: /
pathType: Prefix
tls:
- hosts:
- {{ .Values.hostName }}
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
9 changes: 9 additions & 0 deletions charts/console-api/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
namespace: staging
appName: console-api
doppler:
project: "console-api" # Optional Doppler project name
config: "staging-sandbox" # Optional Doppler config name
image: ghcr.io/akash-network/console-api:2.56.0
imagePullPolicy: "Always"
hostName: console-api-staging-next.akash.network
dopplerConfig: "staging-sandbox" # Or staging-mainnet
23 changes: 23 additions & 0 deletions charts/provider-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/provider-console-api/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v2
name: provider-console-api
description: A Helm chart for Akash Provider Console API deployment

# 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.0.18"
shimpa1 marked this conversation as resolved.
Show resolved Hide resolved
33 changes: 33 additions & 0 deletions charts/provider-console-api/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.appName }}
namespace: {{ .Values.namespace }}
labels:
app: {{ .Values.appName }}
spec:
replicas: 1
selector:
matchLabels:
app: {{ .Values.appName }}
template:
metadata:
labels:
app: {{ .Values.appName }}
spec:
containers:
- name: {{ .Values.appName }}
image: {{ .Values.image }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
resources:
limits:
cpu: "1"
memory: "2Gi"
ephemeral-storage: "2Gi"
requests:
cpu: "500m"
memory: "512Mi"
ephemeral-storage: "2Gi"
envFrom:
- secretRef:
name: {{ .Values.appName }}-secret
13 changes: 13 additions & 0 deletions charts/provider-console-api/templates/doppler-secret.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: secrets.doppler.com/v1alpha1
kind: DopplerSecret
metadata:
name: {{ .Values.appName }}-dopplersecret
shimpa1 marked this conversation as resolved.
Show resolved Hide resolved
namespace: doppler-operator-system
spec:
tokenSecret:
name: {{ .Values.appName }}-token-secret
shimpa1 marked this conversation as resolved.
Show resolved Hide resolved
project: {{ .Values.appName }}
config: {{ .Values.dopplerConfig }}
managedSecret:
name: {{ .Values.appName }}-secret
namespace: {{ .Values.namespace }}
28 changes: 28 additions & 0 deletions charts/provider-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:
namespace: {{ .Values.namespace }}
name: {{ .Values.appName }}-ingress
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: "100m"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/proxy-connect-timeout: "140"
nginx.ingress.kubernetes.io/proxy-send-timeout: "140"
nginx.ingress.kubernetes.io/proxy-read-timeout: "140"
spec:
ingressClassName: nginx
tls:
- hosts:
- {{ .Values.hostName }}
secretName: {{ .Values.appName }}-akash-network-tls
rules:
- host: {{ .Values.hostName }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ .Values.appName }}-service
port:
number: 80
11 changes: 11 additions & 0 deletions charts/provider-console-api/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.appName }}-service
namespace: {{ .Values.namespace }}
spec:
selector:
app: {{ .Values.appName }}
ports:
- protocol: TCP
port: 80
11 changes: 11 additions & 0 deletions charts/provider-console-api/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
appName: provider-console-api

imageName: arc10/provider-console-api:0.0.18
shimpa1 marked this conversation as resolved.
Show resolved Hide resolved

imagePullPolicy: "Always" # or never

hostName: provider-console-api-staging-next.akash.network
shimpa1 marked this conversation as resolved.
Show resolved Hide resolved

dopplerConfig: "staging"

namespace: staging
23 changes: 23 additions & 0 deletions charts/provider-console-security/.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/provider-console-security/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
apiVersion: v2
name: provider-console-security
description: A Helm chart for Akash Network Provider-Console-Security

# 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"
shimpa1 marked this conversation as resolved.
Show resolved Hide resolved
8 changes: 8 additions & 0 deletions charts/provider-console-security/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>
Loading
Loading