Skip to content

Commit

Permalink
done with all deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
shimpa1 committed Feb 5, 2025
1 parent c6561d8 commit 3451a80
Show file tree
Hide file tree
Showing 9 changed files with 162 additions and 2 deletions.
9 changes: 7 additions & 2 deletions charts/provider-console-api/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
appName: provider-console-api
image: arc10/provider-console-api:0.0.18
imagePullPolicy: "Always"

imageName: arc10/provider-console-api:0.0.18

imagePullPolicy: "Always" # or never

hostName: provider-console-api-staging-next.akash.network

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 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: "0.1.0"
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>
33 changes: 33 additions & 0 deletions charts/provider-console-security/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.imageName }}
imagePullPolicy: {{ .Values.imagePullPolicy }}
envFrom:
- secretRef:
name: {{ .Values.appName }}-secret
resources:
limits:
cpu: "1"
memory: "2Gi"
ephemeral-storage: "2Gi"
requests:
cpu: "500m"
memory: "512Mi"
ephemeral-storage: "2Gi"
13 changes: 13 additions & 0 deletions charts/provider-console-security/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
namespace: doppler-operator-system
spec:
tokenSecret:
name: {{ .Values.appName }}-secret
project: {{ .Values.dopplerProject }}
config: {{ .Values.dopplerConfig }}
managedSecret:
name: {{ .Values.appName }}-secret
namespace: {{ .Values.namespace }}
28 changes: 28 additions & 0 deletions charts/provider-console-security/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: 3000
11 changes: 11 additions & 0 deletions charts/provider-console-security/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: 3000
15 changes: 15 additions & 0 deletions charts/provider-console-security/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace: staging

appName: provider-console-security

imagePullPolicy: "Always" # or never

imageName: arc10/provider-console-security:v0.1.0

dopplerProject: provider-console-security

dopplerConfig: staging

hostName: provider-console-security.akash.network

chain: sandbox # or mainnet

0 comments on commit 3451a80

Please sign in to comment.