diff --git a/helm-charts/infisical/templates/backend-deployment b/helm-charts/infisical/templates/backend-deployment new file mode 100644 index 0000000000..645fafb993 --- /dev/null +++ b/helm-charts/infisical/templates/backend-deployment @@ -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 diff --git a/helm-charts/infisical/templates/frontend-deployment.yml b/helm-charts/infisical/templates/frontend-deployment.yml new file mode 100644 index 0000000000..f33313436e --- /dev/null +++ b/helm-charts/infisical/templates/frontend-deployment.yml @@ -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 diff --git a/helm-charts/infisical/templates/secrets.yml b/helm-charts/infisical/templates/secrets.yml new file mode 100644 index 0000000000..d5e2de83c1 --- /dev/null +++ b/helm-charts/infisical/templates/secrets.yml @@ -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}} + \ No newline at end of file