Add chart flowise/6.0.0
This commit is contained in:
@@ -2,6 +2,7 @@ apiVersion: {{ include "common.capabilities.deployment.apiVersion" . }}
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: {{ include "flowise.fullname" . }}
|
||||
namespace: {{ include "common.names.namespace" . | quote }}
|
||||
labels:
|
||||
{{- include "flowise.labels" . | nindent 4 }}
|
||||
{{- if .Values.commonLabels }}
|
||||
@@ -13,6 +14,7 @@ metadata:
|
||||
{{- end }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
revisionHistoryLimit: {{ .Values.revisionHistoryLimit }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "flowise.selectorLabels" . | nindent 6 }}
|
||||
@@ -40,6 +42,7 @@ spec:
|
||||
{{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 8 }}
|
||||
{{- end }}
|
||||
spec:
|
||||
enableServiceLinks: {{ .Values.enableServiceLinks }}
|
||||
{{- include "common.images.pullSecrets" ( dict "images" ( list .Values.image ) "global" .Values.global ) | nindent 6 }}
|
||||
{{- if .Values.hostAliases }}
|
||||
hostAliases: {{- include "common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }}
|
||||
@@ -121,6 +124,34 @@ spec:
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.wait.extraVolumeMounts "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{- if or .Values.redis.enabled .Values.externalRedis.enabled }}
|
||||
- name: wait-redis
|
||||
securityContext:
|
||||
{{- toYaml .Values.wait.securityContext | nindent 12 }}
|
||||
image: {{ include "common.images.image" ( dict "imageRoot" .Values.wait.image "global" .Values.global ) }}
|
||||
imagePullPolicy: {{ .Values.wait.image.pullPolicy }}
|
||||
command:
|
||||
- /bin/sh
|
||||
- -ec
|
||||
- |
|
||||
wait4x redis "redis://default:${REDIS_PASSWORD}@${REDIS_HOST}:${REDIS_PORT}" --timeout 0
|
||||
env:
|
||||
- name: REDIS_HOST
|
||||
value: {{ include "flowise.redis.host" . | quote }}
|
||||
- name: REDIS_PORT
|
||||
value: {{ include "flowise.redis.port" . | quote }}
|
||||
- name: REDIS_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "flowise.redis.secretName" . }}
|
||||
key: {{ include "flowise.redis.secretKeyPassword" . }}
|
||||
resources:
|
||||
{{- toYaml .Values.wait.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
{{- if .Values.wait.extraVolumeMounts }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.wait.extraVolumeMounts "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: flowise
|
||||
securityContext:
|
||||
@@ -134,17 +165,15 @@ spec:
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
env:
|
||||
- name: MODE
|
||||
value: {{ .Values.config.mode | quote }}
|
||||
- name: PORT
|
||||
value: {{ .Values.containerPorts.http | quote }}
|
||||
{{- if and .Values.config.username .Values.config.password }}
|
||||
- name: FLOWISE_USERNAME
|
||||
value: {{ .Values.config.username | quote }}
|
||||
- name: FLOWISE_PASSWORD
|
||||
- name: FLOWISE_SECRETKEY_OVERWRITE
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "flowise.secretName" . }}
|
||||
key: {{ include "flowise.secretKeyPassword" . }}
|
||||
{{- end }}
|
||||
key: {{ include "flowise.secretKeyEncryptionKey" . }}
|
||||
- name: APIKEY_PATH
|
||||
value: /data
|
||||
- name: BLOB_STORAGE_PATH
|
||||
@@ -187,8 +216,17 @@ spec:
|
||||
- name: DATABASE_NAME
|
||||
value: {{ include "flowise.postgresql.database" . | quote }}
|
||||
{{- end }}
|
||||
- name: DISABLE_FLOWISE_TELEMETRY
|
||||
value: "true"
|
||||
{{- if or .Values.redis.enabled .Values.externalRedis.enabled }}
|
||||
- name: REDIS_HOST
|
||||
value: {{ include "flowise.redis.host" . | quote }}
|
||||
- name: REDIS_PORT
|
||||
value: {{ include "flowise.redis.port" . | quote }}
|
||||
- name: REDIS_PASSWORD
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: {{ include "flowise.redis.secretName" . }}
|
||||
key: {{ include "flowise.redis.secretKeyPassword" . }}
|
||||
{{- end }}
|
||||
{{- if .Values.extraEnvVars }}
|
||||
{{- include "common.tplvalues.render" (dict "value" .Values.extraEnvVars "context" $) | nindent 12 }}
|
||||
{{- end }}
|
||||
|
||||
Reference in New Issue
Block a user