Skip to content

Commit

Permalink
add frontend/backend deployment Helm
Browse files Browse the repository at this point in the history
  • Loading branch information
maidul98 committed Dec 4, 2022
1 parent 5f2d305 commit 656d375
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
35 changes: 35 additions & 0 deletions helm-charts/infisical/templates/backend-deployment
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: infisical-backend
labels:
app: backend
spec:
replicas: {{ .Values.backend.replicaCount }}
selector:
matchLabels:
app: backend
template:
metadata:
labels:
app: backend
spec:
containers:
- name: backend
image: infisical/backend
ports:
- containerPort: 4000
env:

---
apiVersion: v1
kind: Service
metadata:
name: infisical-backend-service
spec:
selector:
app: backend
ports:
- protocol: TCP
port: 4000
targetPort: 4000 # container port
33 changes: 33 additions & 0 deletions helm-charts/infisical/templates/frontend-deployment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: infisical-frontend
labels:
app: frontend
spec:
replicas: {{ .Values.frontend.replicaCount }}
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: frontend
image: infisical/frontend
ports:
- containerPort: 4000
---
apiVersion: v1
kind: Service
metadata:
name: infisical-frontend-service
spec:
selector:
app: frontend
ports:
- protocol: TCP
port: 3000 # service
targetPort: 3000 # container port
10 changes: 10 additions & 0 deletions helm-charts/infisical/templates/secrets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: v1
kind: Secret
metadata:
name: {{ .Values.secrets.name | default infisicalSecrets }}
type: {{ .Values.secrets.type }}
data:
{{- range $key, $val := .Values.secrets.all }}
{{"SECRET_"}}{{ $key }}: {{ $val | b64enc | quote }}
{{- end}}

0 comments on commit 656d375

Please sign in to comment.