feat(flowise) add flowise (#10829)
This commit is contained in:
@@ -0,0 +1,30 @@
|
|||||||
|
# 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
|
||||||
|
*~
|
||||||
|
# Various IDEs
|
||||||
|
.project
|
||||||
|
.idea/
|
||||||
|
*.tmproj
|
||||||
|
.vscode/
|
||||||
|
# OWNERS file for Kubernetes
|
||||||
|
OWNERS
|
||||||
|
# helm-docs templates
|
||||||
|
*.gotmpl
|
||||||
|
# docs folder
|
||||||
|
/docs
|
||||||
|
# icon
|
||||||
|
icon.png
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# Changelog
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
apiVersion: v2
|
||||||
|
appVersion: "1.2.16"
|
||||||
|
dependencies:
|
||||||
|
- name: common
|
||||||
|
repository: https://library-charts.truecharts.org
|
||||||
|
version: 12.14.6
|
||||||
|
deprecated: false
|
||||||
|
description: Drag & drop UI to build your customized LLM flow.
|
||||||
|
home: https://truecharts.org/charts/incubator/flowise
|
||||||
|
icon: https://truecharts.org/img/hotlink-ok/chart-icons/flowise.png
|
||||||
|
keywords:
|
||||||
|
- flowise
|
||||||
|
- ai
|
||||||
|
kubeVersion: ">=1.16.0-0"
|
||||||
|
maintainers:
|
||||||
|
- email: info@truecharts.org
|
||||||
|
name: TrueCharts
|
||||||
|
url: https://truecharts.org
|
||||||
|
name: flowise
|
||||||
|
sources:
|
||||||
|
- https://github.com/truecharts/charts/tree/master/charts/incubator/flowise
|
||||||
|
- https://github.com/FlowiseAI/Flowise
|
||||||
|
type: application
|
||||||
|
version: 0.0.1
|
||||||
|
annotations:
|
||||||
|
truecharts.org/catagories: |
|
||||||
|
- ai
|
||||||
|
truecharts.org/SCALE-support: "true"
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# README
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 524 KiB |
@@ -0,0 +1,158 @@
|
|||||||
|
# Include{groups}
|
||||||
|
portals:
|
||||||
|
open:
|
||||||
|
# Include{portalLink}
|
||||||
|
questions:
|
||||||
|
# Include{global}
|
||||||
|
# Include{workload}
|
||||||
|
# Include{workloadDeployment}
|
||||||
|
|
||||||
|
# Include{replicas1}
|
||||||
|
# Include{podSpec}
|
||||||
|
# Include{containerMain}
|
||||||
|
|
||||||
|
- variable: env
|
||||||
|
label: Image Environment
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: FLOWISE_USERNAME
|
||||||
|
label: Username
|
||||||
|
description: Optionally set Username to login.
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
- variable: FLOWISE_PASSWORD
|
||||||
|
label: Password
|
||||||
|
description: Optionally set Password to login.
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
private: true
|
||||||
|
default: ""
|
||||||
|
- variable: EXECUTION_MODE
|
||||||
|
label: Execution Mode
|
||||||
|
description: Whether predictions run in their own process or the main process.
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: main
|
||||||
|
enum:
|
||||||
|
- value: main
|
||||||
|
description: Main
|
||||||
|
- value: child
|
||||||
|
description: Child
|
||||||
|
- variable: DEBUG
|
||||||
|
label: Debug
|
||||||
|
description: Print logs onto terminal/console.
|
||||||
|
schema:
|
||||||
|
type: boolean
|
||||||
|
default: true
|
||||||
|
- variable: LOG_LEVEL
|
||||||
|
label: Log Level
|
||||||
|
description: Different log levels for loggers to be saved.
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: debug
|
||||||
|
enum:
|
||||||
|
- value: error
|
||||||
|
description: Error
|
||||||
|
- value: warn
|
||||||
|
description: Warn
|
||||||
|
- value: info
|
||||||
|
description: Info
|
||||||
|
- value: verbose
|
||||||
|
description: Verbose
|
||||||
|
- value: debug
|
||||||
|
description: Debug
|
||||||
|
- variable: LOG_LEVEL
|
||||||
|
label: Log Level
|
||||||
|
description: Different log levels for loggers to be saved.
|
||||||
|
schema:
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
|
# Include{containerBasic}
|
||||||
|
# Include{containerAdvanced}
|
||||||
|
|
||||||
|
# Include{containerConfig}
|
||||||
|
# Include{podOptions}
|
||||||
|
# Include{serviceRoot}
|
||||||
|
# Include{serviceMain}
|
||||||
|
# Include{serviceSelectorLoadBalancer}
|
||||||
|
# Include{serviceSelectorExtras}
|
||||||
|
- variable: main
|
||||||
|
label: "Main Service Port Configuration"
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
- variable: port
|
||||||
|
label: "Port"
|
||||||
|
description: "This port exposes the container port on the service"
|
||||||
|
schema:
|
||||||
|
type: int
|
||||||
|
default: 3000
|
||||||
|
required: true
|
||||||
|
# Include{serviceExpertRoot}
|
||||||
|
# Include{serviceExpert}
|
||||||
|
# Include{serviceList}
|
||||||
|
# Include{persistenceRoot}
|
||||||
|
- variable: api
|
||||||
|
label: "App API Storage"
|
||||||
|
description: "Stores the Application API."
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
# Include{persistenceBasic}
|
||||||
|
- variable: logs
|
||||||
|
label: "App Logs Storage"
|
||||||
|
description: "Stores the Application Logs."
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
# Include{persistenceBasic}
|
||||||
|
# Include{persistenceList}
|
||||||
|
# Include{ingressRoot}
|
||||||
|
- variable: main
|
||||||
|
label: "Main Ingress"
|
||||||
|
schema:
|
||||||
|
additional_attrs: true
|
||||||
|
type: dict
|
||||||
|
attrs:
|
||||||
|
# Include{ingressDefault}
|
||||||
|
# Include{ingressTLS}
|
||||||
|
# Include{ingressTraefik}
|
||||||
|
# Include{ingressAdvanced}
|
||||||
|
# Include{ingressList}
|
||||||
|
# Include{securityContextRoot}
|
||||||
|
|
||||||
|
- variable: runAsUser
|
||||||
|
label: "runAsUser"
|
||||||
|
description: "The UserID of the user running the application"
|
||||||
|
schema:
|
||||||
|
type: int
|
||||||
|
default: 0
|
||||||
|
- variable: runAsGroup
|
||||||
|
label: "runAsGroup"
|
||||||
|
description: "The groupID of the user running the application"
|
||||||
|
schema:
|
||||||
|
type: int
|
||||||
|
default: 0
|
||||||
|
# Include{securityContextContainer}
|
||||||
|
# Include{securityContextAdvanced}
|
||||||
|
# Include{securityContextPod}
|
||||||
|
- variable: fsGroup
|
||||||
|
label: "fsGroup"
|
||||||
|
description: "The group that should own ALL storage."
|
||||||
|
schema:
|
||||||
|
type: int
|
||||||
|
default: 568
|
||||||
|
|
||||||
|
# Include{resources}
|
||||||
|
# Include{advanced}
|
||||||
|
# Include{addons}
|
||||||
|
# Include{codeserver}
|
||||||
|
# Include{netshoot}
|
||||||
|
# Include{vpn}
|
||||||
|
# Include{documentation}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{{- include "tc.v1.common.lib.chart.notes" $ -}}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{{/* Define the secrets */}}
|
||||||
|
{{- define "flowise.secrets" -}}
|
||||||
|
{{- $secretName := (printf "%s-flowise-secrets" (include "tc.v1.common.lib.chart.names.fullname" $)) }}
|
||||||
|
{{- $flowiseprevious := lookup "v1" "Secret" .Release.Namespace $secretName }}
|
||||||
|
enabled: true
|
||||||
|
data:
|
||||||
|
{{- if $flowiseprevious }}
|
||||||
|
PASSPHRASE: {{ index $flowiseprevious.data "PASSPHRASE" | b64dec }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $pass_key := randAlphaNum 32 }}
|
||||||
|
PASSPHRASE: {{ $pass_key }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{- end -}}
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
{{/* Make sure all variables are set properly */}}
|
||||||
|
{{- include "tc.v1.common.loader.init" . }}
|
||||||
|
|
||||||
|
{{/* Render secrets for flowise */}}
|
||||||
|
{{- $secrets := include "flowise.secrets" . | fromYaml -}}
|
||||||
|
{{- if $secrets -}}
|
||||||
|
{{- $_ := set .Values.secret "flowise-secrets" $secrets -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/* Render the templates */}}
|
||||||
|
{{ include "tc.v1.common.loader.apply" . }}
|
||||||
@@ -0,0 +1,86 @@
|
|||||||
|
image:
|
||||||
|
repository: tccr.io/truecharts/flowise
|
||||||
|
pullPolicy: IfNotPresent
|
||||||
|
tag: v1.2.16@sha256:dd26066890e74e49f4e3976f918394ddc0f84430c59f9abe5315fb8147382440
|
||||||
|
|
||||||
|
securityContext:
|
||||||
|
container:
|
||||||
|
runAsNonRoot: false
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
runAsUser: 0
|
||||||
|
runAsGroup: 0
|
||||||
|
|
||||||
|
service:
|
||||||
|
main:
|
||||||
|
ports:
|
||||||
|
main:
|
||||||
|
protocol: http
|
||||||
|
port: 3000
|
||||||
|
|
||||||
|
workload:
|
||||||
|
main:
|
||||||
|
podSpec:
|
||||||
|
containers:
|
||||||
|
main:
|
||||||
|
probes:
|
||||||
|
liveness:
|
||||||
|
path: "/"
|
||||||
|
readiness:
|
||||||
|
path: "/"
|
||||||
|
startup:
|
||||||
|
path: "/"
|
||||||
|
args:
|
||||||
|
- npx
|
||||||
|
- flowise
|
||||||
|
- start
|
||||||
|
env:
|
||||||
|
PORT: "{{ .Values.service.main.ports.main.port }}"
|
||||||
|
# Set paths
|
||||||
|
APIKEY_PATH: "{{.Values.persistence.api.mountPath }}"
|
||||||
|
LOG_PATH: "{{.Values.persistence.logs.mountPath }}"
|
||||||
|
# Postgres DB
|
||||||
|
DATABASE_TYPE: postgres
|
||||||
|
OVERRIDE_DATABASE: true
|
||||||
|
DATABASE_HOST:
|
||||||
|
secretKeyRef:
|
||||||
|
name: cnpg-main-urls
|
||||||
|
key: host
|
||||||
|
DATABASE_PORT: 5432
|
||||||
|
DATABASE_USER: "{{ .Values.cnpg.main.user }}"
|
||||||
|
DATABASE_PASSWORD:
|
||||||
|
secretKeyRef:
|
||||||
|
name: cnpg-main-user
|
||||||
|
key: password
|
||||||
|
DATABASE_NAME: "{{ .Values.cnpg.main.database }}"
|
||||||
|
# child | main
|
||||||
|
EXECUTION_MODE: main
|
||||||
|
# error | warn | info | verbose | debug
|
||||||
|
LOG_LEVEL: debug
|
||||||
|
DEBUG: true
|
||||||
|
# optional auth
|
||||||
|
FLOWISE_USERNAME: user
|
||||||
|
FLOWISE_PASSWORD: 1234
|
||||||
|
PASSPHRASE:
|
||||||
|
secretKeyRef:
|
||||||
|
name: flowise-secrets
|
||||||
|
key: PASSPHRASE
|
||||||
|
# TOOL_FUNCTION_BUILTIN_DEP
|
||||||
|
# TOOL_FUNCTION_EXTERNAL_DEP
|
||||||
|
|
||||||
|
persistence:
|
||||||
|
api:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/config/api"
|
||||||
|
logs:
|
||||||
|
enabled: true
|
||||||
|
mountPath: "/config/logs"
|
||||||
|
|
||||||
|
cnpg:
|
||||||
|
main:
|
||||||
|
enabled: true
|
||||||
|
user: flowise
|
||||||
|
database: flowise
|
||||||
|
|
||||||
|
portal:
|
||||||
|
open:
|
||||||
|
enabled: true
|
||||||
Reference in New Issue
Block a user