mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
update helm chart to make envfrom optional
This commit is contained in:
@@ -7,7 +7,7 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# 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.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.1.4
|
version: 0.1.5
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# 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
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
|||||||
@@ -20,9 +20,11 @@ spec:
|
|||||||
imagePullPolicy: {{ .Values.backend.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.backend.image.pullPolicy }}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 4000
|
- containerPort: 4000
|
||||||
|
{{- if .Values.backend.kubeSecretRef }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Values.backend.kubeSecretRef }}
|
name: {{ .Values.backend.kubeSecretRef }}
|
||||||
|
{{- end }}
|
||||||
env:
|
env:
|
||||||
{{- range $key, $value := .Values.backendEnvironmentVariables }}
|
{{- range $key, $value := .Values.backendEnvironmentVariables }}
|
||||||
{{- if $value | quote | eq "MUST_REPLACE" }}
|
{{- if $value | quote | eq "MUST_REPLACE" }}
|
||||||
|
|||||||
@@ -18,9 +18,12 @@ spec:
|
|||||||
- name: frontend
|
- name: frontend
|
||||||
image: infisical/frontend
|
image: infisical/frontend
|
||||||
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
|
imagePullPolicy: {{ .Values.frontend.image.pullPolicy }}
|
||||||
|
{{- if .Values.frontend.kubeSecretRef }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: {{ .Values.frontend.kubeSecretRef }}
|
name: {{ .Values.frontend.kubeSecretRef }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.frontendEnvironmentVariables }}
|
||||||
env:
|
env:
|
||||||
{{- range $key, $value := .Values.frontendEnvironmentVariables }}
|
{{- range $key, $value := .Values.frontendEnvironmentVariables }}
|
||||||
{{- if $value | quote | eq "MUST_REPLACE" }}
|
{{- if $value | quote | eq "MUST_REPLACE" }}
|
||||||
@@ -29,6 +32,7 @@ spec:
|
|||||||
- name: {{ $key }}
|
- name: {{ $key }}
|
||||||
value: {{ quote $value }}
|
value: {{ quote $value }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 4000
|
- containerPort: 4000
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
# PLEASE REPLACE VALUES/EDIT AS REQUIRED
|
# PLEASE REPLACE VALUES/EDIT AS REQUIRED
|
||||||
#####
|
#####
|
||||||
|
|
||||||
namespace: infisical
|
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
image:
|
image:
|
||||||
repository:
|
repository:
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
|
# kubeSecretRef: some-kube-secret-name
|
||||||
|
|
||||||
|
|
||||||
backend:
|
backend:
|
||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
@@ -18,6 +18,7 @@ backend:
|
|||||||
repository:
|
repository:
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
tag: "latest"
|
tag: "latest"
|
||||||
|
# kubeSecretRef: some-kube-secret-name
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -54,8 +55,6 @@ ingress:
|
|||||||
###
|
###
|
||||||
backendEnvironmentVariables:
|
backendEnvironmentVariables:
|
||||||
# Required keys for platform encryption/decryption ops. Replace with nacl sk keys
|
# Required keys for platform encryption/decryption ops. Replace with nacl sk keys
|
||||||
PRIVATE_KEY: MUST_REPLACE
|
|
||||||
PUBLIC_KEY: MUST_REPLACE
|
|
||||||
ENCRYPTION_KEY: MUST_REPLACE
|
ENCRYPTION_KEY: MUST_REPLACE
|
||||||
|
|
||||||
# JWT
|
# JWT
|
||||||
@@ -71,9 +70,8 @@ backendEnvironmentVariables:
|
|||||||
SMTP_USERNAME: MUST_REPLACE
|
SMTP_USERNAME: MUST_REPLACE
|
||||||
SMTP_PASSWORD: MUST_REPLACE
|
SMTP_PASSWORD: MUST_REPLACE
|
||||||
|
|
||||||
# You may replace with Mongo Cloud URI
|
# Recommended to replace with Mongo Cloud URI as the DB instance in the cluster does not have persistence yet
|
||||||
MONGO_URL: mongodb://root:root@mongodb-service:27017/
|
MONGO_URL: mongodb://root:root@mongodb-service:27017/
|
||||||
|
|
||||||
# frontendEnvironmentVariables:
|
# frontendEnvironmentVariables:
|
||||||
# INFISICAL_TELEMETRY_ENABLED: true
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user