Flowise 챗플로우 가져오기
이 워크스루에서는 Flowise에서 내보낸 챗플로우(채팅 모델과 메모리를 갖춘 대화 체인)를, 작성된 그대로 챗플로우를 담은 Flowise를 Docker Compose용으로 빌드하는 Aggregate, Release, Manifest로 가져온 다음, 이를 빌드하고 결과를 실행합니다. 아래의 모든 파일과 모든 출력 블록은 실제 실행에서 나온 것입니다. 챗플로우와 워크스루의 각 단계는 import-flowise 예제에 있으며, 그곳의 검사 스크립트가 가져오기를 다시 실행하여 작성하는 내용, 출력하는 내용, 그리고 이 페이지가 인용하는 블록을 그곳에 보관된 파일과 비교하고, 가져오기가 작성한 것을 검증하고 빌드합니다.
예제 생성하기
이 페이지의 명령으로 이 가져오기를 실행하거나, AI 어시스턴트가 대신 실행하게 할 수 있습니다.
예제 이름을 딴 새 폴더에 예제를 씁니다:
aggrega scaffold --example import-flowise그런 다음 이어서 실행할 명령을 출력합니다. 첫 번째 명령은 새 폴더로 이동합니다. 그 뒤의 명령은 아래와 같으며, 새 폴더 안의 source 폴더로 이동합니다. 가져오기는 여기서 실행됩니다. 이 폴더에는 챗플로 파일 support-chat.json이 들어 있으며, 이 페이지는 그 내용을 인용하지 않고 설명합니다:
cd import-flowise
챗플로우
support-chat.json은 Flowise 편집기가 챗플로우를 내보내는 형태로 이 워크스루를 위해 작성되었으며, 세 개의 노드와 그 사이의 두 에지를 담고 있습니다. gpt-4o-mini를 선택하는 ChatOpenAI 노드, Buffer Memory 노드, 그리고 두 노드를 모두 받아 짧은 시스템 메시지로 응답하는 Conversation Chain 노드입니다. ChatOpenAI 노드는 저장된 자격 증명을 선택하지 않고 Base Path도 비워 두므로, Flowise가 이 노드를 실행하는 OpenAI 클라이언트는 주소와 키를 Flowise의 환경에서 읽습니다.
챗플로우 옆에 있는 .aggrega-config.yaml이 폴더를 작업 공간으로 만듭니다:
# The workspace key marks this directory as the workspace root, so an import run# here writes its drafts beside support-chat.json.workspace: {}# The registry the importer is fetched from the first time an import needs it.default_registry: hub.aggrega.ai그리고 import-answers.yaml에는 어떤 챗플로우도 담을 수 없는 것에 대한 답이 들어 있습니다. Flowise는 시작할 때 파일에서 챗플로우를 불러오지 않으므로, 빌드는 소유자 계정으로 Flowise 자체 API를 통해 챗플로우를 시드하며, 어떤 내보내기도 그 계정을 지정하지 않습니다. 그 계정의 이메일이 Docker Compose용 가져오기에 필요한 유일한 답입니다. Kubernetes용 가져오기에는 각 시크릿(소유자의 비밀번호와 OpenAI 키)을 담은 Kubernetes Secret의 이름도 필요하므로, 파일은 그 두 Secret도 지정합니다(Kubernetes에서 참조):
# Values the import could not draft from the source, keyed by the drafted file and the key path inside# it. Write each one beside its key; an import of the same source, and a sync, read them from here and# ask nothing. A secret is never written here: its key asks where the secret comes from — a variable# name, ${NAME}, or the name of a Kubernetes Secret.release.yaml: # Email address of the platform's owner account, read only when values.flow_definition is set. The # step that seeds the chatflow registers this account when the instance has no owner yet, which makes # it the owner, and signs in as it; on an instance that already has one, it names an account allowed # to import chatflows, and the password attached to the owner_password slot is that account's. # Required when values.flow_definition is set: the build halts when it is empty. It has no default. spec.components.flowise.infra.owner_email: "owner@example.com" # The origin of the secret value, written by the operator in the Release. Read exactly as # values.origin is. Write it here or in values.origin, never in both. A secret: name where it comes # from, never the value. spec.components.flowise.features.owner_password.infra.origin: "flowise-owner" # The origin of the secret value, written by the operator in the Release. Read exactly as # values.origin is. Write it here or in values.origin, never in both. A secret: name where it comes # from, never the value. spec.components.flowise.uses.model.chatopenai-0.features.credential.infra.origin: "openai-api-key"owner@example.com은 자신의 이메일을 나타냅니다. 파일이 없으면 터미널에서 실행한 가져오기는 각 값을 한 번에 한 질문씩, 해당 키 위의 설명을 바탕으로 한 문구로 묻고, 답을 새 답변 파일에 기록합니다. 아무것도 물을 수 없는 경우에는 키와 빈 답으로 그 파일을 기록하고, 키를 나열한 뒤 상태 1로 종료합니다. 가져오기 답변 파일에서 이 파일을 자세히 설명합니다.
가져오기는 각 노드를 작업 공간 카탈로그의 Components와 비교하여 평가하고, --target은 그 카탈로그의 Recipes로부터 Manifest 초안을 작성합니다. 작업 공간이 카탈로그 폴더를 지정하지 않으므로, 가져오기는 임포터를 받아 오는 레지스트리에서 표준 라이브러리 카탈로그를 읽습니다. 이는 게시된 카탈로그의 서명된 스냅샷으로, 첫 번째 가져오기가 받아 와서 검증한 뒤 작업 공간의 콘텐츠 캐시에 보관하며, 가져오기가 초안 옆에 작성하는 기록에 그 다이제스트로 지정됩니다. AGGREGA_CATALOG_DIRS에서 또는 workspace.catalog_dirs 아래에서 자체 카탈로그 폴더를 지정하는 작업 공간은 대신 그 폴더들을 기준으로 가져옵니다. source로 이동합니다:
cd source가져오기 실행
aggrega import support-chat.json --target compose표준 출력에는 작성한 것을 나열합니다:
wrote aggregate.yamlwrote release.yamlwrote manifest.yamlwrote .aggrega-import.json표준 오류에는 다음과 같이 출력합니다. 여기서 <workspace>는 명령을 실행한 폴더를 나타냅니다:
[… omitted: a warning that the importer runs unverified, printed where its module is read from beside its Plugin entity in a catalog folder rather than fetched]read as the flowise format, with drafted paths relative to <workspace>warn: node chatOpenAI_0 reaches chatopenai-0 through the model connection chatopenai-0 of core/ai-agent/flowise: its Base Path is empty, so the OpenAI client Flowise runs it on reads the address the platform delivers for this connection, OPENAI_BASE_URL, and, since it selects no credential, the key delivered as OPENAI_API_KEYinfo: the answers file <workspace>/import-answers.yaml also answers spec.components.flowise.features.owner_password.infra.origin in release.yaml, spec.components.flowise.uses.model.chatopenai-0.features.credential.infra.origin in release.yaml, which these drafts do not leave empty; those answers are kept there and not appliedmapped chatOpenAI_0 (chatOpenAI) to core/ai-model/openai as a reference, HIGH at 0.9made no choice for bufferMemory_0 (bufferMemory)made no choice for conversationChain_0 (conversationChain) warning: node "flowise" (provider "compose"): artifact "flowise-flow/flowise-flow.yaml": skipped provenance label injection — the fragment declares no compose service. Compose carries build provenance as service labels, so a fragment contributing only top-level networks, volumes or configs carries none; the services this component emits elsewhere carry the full set.Pull complete: <workspace>/release.lock (entities=8, source_artifacts=0, external_inputs=0)
mapped줄은 ChatOpenAI 노드가 표준 라이브러리의 OpenAI 모델인core/ai-model/openai가 되었으며, 높은 등급에서 0.9로 일치했으므로 초안으로 작성되지 않고 참조되었음을 나타냅니다. 즉 플랫폼의model소켓에 연결된 자체 구성 요소입니다.warn줄은 챗플로우가 그 모델에 어떻게 도달하는지를 설명합니다. 노드는 플랫폼이 모델 연결에 대해 전달하는 주소와 키를 읽으므로, Release가 연결에 첨부한 키가 곧 챗플로우가 사용하는 키입니다.info줄은 답변 파일에 관한 것입니다. 답변 파일은 초안이 비워 둔 소유자의 이메일에 답했습니다. 그 두 Secret 이름은 Kubernetes용 가져오기만 비워 두는 항목에 대한 답이므로 파일에 남아 있지만 여기서는 사용되지 않습니다.made no choice줄은 메모리와 체인이 챗플로우 안에 남는다는 것을 나타냅니다. 플랫폼의 어떤 소켓도 이를 받지 않습니다.- 마지막 두 줄은 풀입니다. 모든 값에 답이 있으므로 가져오기는
aggrega pull과 같이 초안으로 작성된 Release의 의존성을 가져와release.lock을 기록했습니다. 아래 빌드에는 더 필요한 것이 없습니다.warning줄은 빌드도 출력하는 줄이며, 검증 및 빌드에서 설명합니다.
작성하는 내용
Aggregate, Release, Manifest의 이름은 imported/support-chat입니다. Flowise 내보내기에는 자체 이름이 없으므로 파일 이름 support-chat.json을 따릅니다. 네임스페이스는 임포터의 target_namespace 설정이 정하며, 다른 값을 설정하지 않으면 imported입니다(설정).
aggregate.yaml — 표준 라이브러리 Flowise 플랫폼 core/ai-agent/flowise의 인스턴스 하나로, 내보낸 그대로의 챗플로우(여기서는 대부분 생략)와 그 model 소켓에 연결된 모델을 담고 있습니다:
apiVersion: aggrega.ai/v1beta1kind: Aggregatemetadata: name: imported/support-chat version: 0.1.0 description: Draft Aggregate imported from a source in the flowise format.spec: components: flowise: type: core/ai-agent/flowise features: # For the compose target, the lines below declare owner_password on flowise: a secret the Release alone attaches arrives under the key value, so each is declared with a key of its own and no two arrive under one; the Release attaches its origin, naming this type or none. owner_password: type: core/secret-value values: key: OWNER_PASSWORD values: # chatflow_id is derived from the exported flow, which gives no identifier of its own. chatflow_id: '40d9f5c5-5187-54c1-a9f5-a8dac92f88bb' flow_definition: | { "nodes": [ [… omitted: the chatflow's nodes, as exported, up to the Conversation Chain's inputs] "inputs": { "model": "{{"{{"}}chatOpenAI_0.data.instance}}", "memory": "{{"{{"}}bufferMemory_0.data.instance}}", [… omitted: the rest of the chatflow, as exported] } uses: model: chatopenai-0: target: chatopenai-0 # For the compose target, the lines below declare credential on chatopenai-0: a secret the Release alone attaches arrives under the key value, so each is declared with a key of its own and no two arrive under one; the Release attaches its origin, naming this type or none. features: credential: type: core/secret-value values: key: OPENAI_API_KEY # swap to core/ai-model/azure-openai (score 0.4000) by setting type: core/ai-model/azure-openai chatopenai-0: type: core/ai-model/openai values: model: |- gpt-4o-mini- 모델은
core/ai-model/openai이며, 노드가 선택하는 모델gpt-4o-mini를 사용합니다. 그 위의 주석은 노드와 유사한 카탈로그의 다른 Component를 점수와 함께 지정합니다. - 두 시크릿, 즉 챗플로우를 시드할 때 사용하는 소유자 계정의 비밀번호와 플랫폼이 모델에 제시하는 OpenAI 키는 각각이 Flowise 환경에 도착하는 변수인
OWNER_PASSWORD와OPENAI_API_KEY와 함께 여기에서 선언됩니다. Docker Compose에서는 Release만 첨부한 시크릿이 키value로 도착하므로 두 시크릿이 충돌합니다. 여기에서 선언하면 각각 고유한 키를 갖습니다. 각각의 출처는 Release가 지정합니다. chatflow_id값은 챗플로우에서 도출됩니다. Flowise 편집기에서 내보낸 결과에는 자체 식별자가 없기 때문이며, 따라서 하나의 챗플로우는 항상 하나의 식별자를 만들어 냅니다. Flowise 챗플로우는 두 노드 사이의 모든 연결에 대해{{<node id>.data.instance}}를 쓰고, Aggregate의 텍스트는 템플릿으로 읽히므로, 초안은 각{{를{{"{{"}}로 씁니다. 빌드는 이를 다시 두 개의 중괄호로 되돌립니다.
release.yaml — Manifest로 Aggregate를 배포하는 Release입니다:
apiVersion: aggrega.ai/v1beta1kind: Releasemetadata: name: imported/support-chat # environment is a drafted default, since no source names the environment this Release deploys to; change it to name the one it deploys to. environment: development version: 0.1.0 description: Draft Release imported from a source in the flowise format.spec: aggregate: imported/support-chat manifest: imported/support-chat components: flowise: infra: # The image running core/ai-agent/flowise, at the version this importer drafts, which the catalog's Recipes for it are known to run; the import does not raise or lower it to follow the source. image: "flowiseai/flowise:3.1.3" # Left for the Release, since the source cannot supply it: infra.owner_email, the email address of the platform's owner account, required while values.flow_definition is set owner_email: "owner@example.com" # Published on this machine's loopback address, 127.0.0.1: reachable from this machine only, by any process running on it. Delete this line to keep the service internal. published_port: 3000 features: owner_password: type: core/secret-value infra: # Attached by reference, never as a value: the owner account's password, required while values.flow_definition is set, read from the variable FLOWISE_OWNER_PASSWORD, which a target substituting variable references, as Docker Compose does when the stack starts, reads from the environment, so no file carries the value. origin: "${FLOWISE_OWNER_PASSWORD}" uses: model: chatopenai-0: features: credential: type: core/secret-value infra: # Attached by reference, never as a value: the credential flowise presents to chatopenai-0 on its model connection, read from the variable OPENAI_API_KEY, which a target substituting variable references, as Docker Compose does when the stack starts, reads from the environment, so no file carries the value. origin: "${OPENAI_API_KEY}" chatopenai-0: {}environment값은development입니다. 이는 기본값이며, 그 위의 주석은 Release가 배포되는 환경으로 바꾸라고 안내합니다.- 이미지는 Flowise 3.1.3이며, 카탈로그의 Flowise용 Recipes가 실행하는 버전입니다.
- **
published_port**는 Flowise가 서비스하는 포트인 3000이므로, 내 컴퓨터의http://127.0.0.1:3000에서 응답합니다. 주석에 적힌 대로 이 컴퓨터의 모든 프로세스가 그곳에서 접근할 수 있고 그 밖의 어떤 것도 접근할 수 없습니다. Flowise를 스택의 네트워크에만 두려면 이 줄을 삭제합니다. - **
owner_email**은 답변 파일에서 가져온 답입니다. 그 위의 주석은 가져오기가 이 값을 초안으로 작성할 수 없었던 이유를 설명합니다. - 두 시크릿은 변수 참조
${FLOWISE_OWNER_PASSWORD}와${OPENAI_API_KEY}이며, 스택이 시작될 때 Docker Compose가 셸에서 값을 채우므로 어떤 파일도 두 값 중 어느 것도 담지 않습니다.
manifest.yaml — 플랫폼과 모델의 Compose Recipes, 그리고 시크릿의 변수 참조를 Compose 파일에 그대로 기록하는 구현입니다:
apiVersion: aggrega.ai/v1beta1kind: Manifestmetadata: name: imported/support-chat version: 0.1.0spec: mappings: components: type: core/ai-agent/flowise: compose/flowise core/ai-model/openai: compose/openai features: type: core/secret-value: compose/dotenv-secret.aggrega-import.json은 가져오기가 작성한 내용의 기록으로, 이후의 aggrega import --sync가 이를 읽습니다. release.lock은 Release가 해석되는 모든 카탈로그 엔터티를 버전과 다이제스트로 고정합니다.
검증 및 빌드
aggrega validate --release release.yamlaggrega build --release release.yaml

검증 결과는 다음과 같습니다:
notice: LINT: Feature "core/secret-value" at core/secret-value:1.0.0 declares property "origin" in both values: and infra: pillars (path: origin)release dependency validation passed: release.yaml (schema-pillar + dependency pillars)그리고 빌드 결과입니다. 여기서 <workspace>는 초안이 있는 폴더를 나타냅니다:
warning: node "flowise" (provider "compose"): artifact "flowise-flow/flowise-flow.yaml": skipped provenance label injection — the fragment declares no compose service. Compose carries build provenance as service labels, so a fragment contributing only top-level networks, volumes or configs carries none; the services this component emits elsewhere carry the full set. notice: LINT: Feature "core/secret-value" at core/secret-value:1.0.0 declares property "origin" in both values: and infra: pillars (path: origin)[… omitted: a total build time, which differs per run]Build completed: 1 file written to <workspace>/distwarning 줄은 Compose 파일에서 챗플로우를 담는 부분, 즉 최상위 configs 항목에 관한 것으로, 이 항목에는 빌드의 레이블을 붙일 서비스가 없습니다. notice 줄은 참고용입니다. 시크릿 Feature는 Aggregate의 values 또는 Release의 infra에서 origin을 받으며, 이 알림은 하나의 리프가 양쪽 모두에 선언되어 있음을 보고합니다. 어느 쪽도 판정을 바꾸지 않습니다.
dist/compose/docker-compose.yaml에는 두 개의 서비스가 있습니다. Flowise 자체:
flowise: image: flowiseai/flowise:3.1.3 environment: DATABASE_PATH: /home/node/.flowise SECRETKEY_PATH: /home/node/.flowise OPENAI_BASE_URL: https://api.openai.com/v1 OPENAI_API_KEY: ${OPENAI_API_KEY} ports: - 127.0.0.1:3000:3000 [… omitted: the labels the build writes on every service, naming the Aggregate, the component, the environment and the compiler's version] volumes: - type: volume source: flowise--data target: /home/node networks: - compose [… omitted: the service's health check]그리고 Flowise가 정상 상태를 보고하면 챗플로우를 시드한 다음 종료하는 서비스:
flowise-flow-seed: image: flowiseai/flowise:3.1.3 entrypoint: - node - /seed/seed.js environment: FLOWISE_URL: http://127.0.0.1:3000 OWNER_EMAIL: owner@example.com OWNER_PASSWORD: ${FLOWISE_OWNER_PASSWORD} CHATFLOW_ID: 40d9f5c5-5187-54c1-a9f5-a8dac92f88bb CHATFLOW_NAME: 40d9f5c5-5187-54c1-a9f5-a8dac92f88bb [… omitted: the labels the build writes on every service] network_mode: service:flowise depends_on: flowise: condition: service_healthy restart: "no" configs: - source: flowise-flow target: /seed/flow.json - source: flowise-flow-seed target: /seed/seed.js이 서비스는 새 Flowise에 소유자 계정을 등록하거나 그 계정으로 로그인한 뒤, 챗플로우를 chatflow_id에 기록합니다. 키와 비밀번호는 변수 참조이며, 스택이 시작될 때 셸에서 값이 채워집니다. Flowise의 Compose Recipe는 Release가 Flowise의 infra에 published_port를 설정한 경우에만 사용자의 머신에 포트를 게시하며, 그 경우에도 루프백 주소인 127.0.0.1에만 게시합니다. 이 설정이 없으면 서비스는 스택의 네트워크에서만 접근할 수 있습니다.
AI 어시스턴트 사용
Aggrega의 도구로 설정된 AI 어시스턴트도 같은 일을 할 수 있습니다. 다음 프롬프트를 붙여 넣으십시오.
Aggrega 도구만 사용하고, 폴더를 직접 만들지 마십시오. Workspace 폴더에 아직 `import-flowise` 폴더가 없으면, `example`을 `import-flowise`로 설정하고 `dir`은 지정하지 않은 채 `scaffold` 도구를 한 번 호출하십시오. 이 도구는 예제를 새 `import-flowise` 폴더에 기록하며, 그 안의 `source` 폴더에 이 페이지가 가져오는 내용이 들어 있습니다. 그런 다음 `workspace_root`를 `import-flowise/source`로, `source`를 `support-chat.json`으로, `target`을 `compose`로 설정하여 `import` 도구를 호출하십시오. 이 도구는 `support-chat.json` 옆의 `import-answers.yaml`에서 필요한 답변을 읽고, 초안을 `import-flowise/source`에 기록하며, 초안에 필요한 것을 풀합니다. 그런 다음 `workspace_root`를 `import-flowise/source`로, `release`를 `release.yaml`로 설정하여 `validate` 도구를 호출하고, `workspace_root`를 `import-flowise/source`로, `release`를 `release.yaml`로, `write`를 true로 설정하여 `build` 도구를 호출하십시오. 빌드가 기록한 파일을 알려 주십시오. 파일은 `import-flowise/source/dist/` 아래에 있습니다.VS Code에서 열기
Visual Studio Code용 Aggrega 확장을 설치한 상태에서, 가져오기가 초안을 기록한 import-flowise/source 폴더를 VS Code에서 엽니다. 이 폴더에는 Release가 하나, 즉 초안 release.yaml만 있으므로 편집기가 이를 자동으로 선택하고, 초안을 편집하는 동안 해당 Release를 기준으로 검사하여 발견한 내용을 파일과 문제 패널에 표시합니다. 명령 팔레트의 Aggrega: Show topology graph는 Release의 구성 요소와 그 사이의 연결을 그립니다. Aggrega: Build, Aggrega: Preview build, Aggrega: Pull은 같은 Release에 대해 동작하며, 각각 작업 막대에 있는 Aggrega 보기의 Commands 패널에 있는 버튼이기도 합니다. Build는 파일을 폴더의 dist/에 기록합니다. 나머지 내용은 Visual Studio Code에서 Aggrega 사용하기에서 다룹니다.
실행하기
셸에서 키와 소유자 비밀번호를 설정하고, Flowise를 시작한 다음, 시드 서비스를 실행합니다:
export OPENAI_API_KEY='your OpenAI key'export FLOWISE_OWNER_PASSWORD='a password of your own'docker compose -p support-chat -f dist/compose/docker-compose.yaml up -d --wait flowisedocker compose -p support-chat -f dist/compose/docker-compose.yaml up flowise-flow-seed-p는 가져오기 실행 방식의 실행 단계에서 설명하듯이 프로젝트의 이름을 지정합니다. --wait는 Flowise가 정상 상태를 보고하면 반환됩니다. flowise만 지정하는 이유는 종료된 컨테이너를 모두 실패로 간주하기 때문이며, 시드 서비스는 설계상 종료됩니다. 두 번째 명령은 시드 서비스를 실행하고, 그 로그를 출력하며, 서비스가 종료되면 반환됩니다:
flowise-flow-seed-1 | registered the owner account owner@example.comflowise-flow-seed-1 | imported chatflow 40d9f5c5-5187-54c1-a9f5-a8dac92f88bb as "40d9f5c5-5187-54c1-a9f5-a8dac92f88bb"flowise-flow-seed-1 exited with code 0머신의 다른 프로그램이 이미 127.0.0.1:3000에서 수신 대기 중이면, 첫 번째 명령은 failed to bind host port 127.0.0.1:3000/tcp: address already in use와 함께 중지됩니다. published_port를 사용 가능한 포트로 설정하고 다시 빌드하십시오. 아래 실행에서는 3002로 그렇게 했으며, 3000 대신 그 포트를 사용했습니다.
테스트하기
published_port가 게시하는 주소인 http://127.0.0.1:3000을 열고 소유자의 이메일과 비밀번호로 로그인합니다. 시드의 챗플로우가 Flowise에 있습니다.
자체 API 키를 설정하지 않은 챗플로우는 키 없이 예측 엔드포인트에 응답합니다. 질문을 보내 보십시오:
curl -sS -X POST http://127.0.0.1:3000/api/v1/prediction/40d9f5c5-5187-54c1-a9f5-a8dac92f88bb \ -H 'Content-Type: application/json' -d '{"question": "In one short sentence: what is Docker Compose?"}'이 실행에서는 OpenAI 키에 자리 표시자를 사용했으므로, 응답은 OpenAI가 그 키를 거부한 것이며, 이는 챗플로우가 모델 호출까지 실행되었음을 보여 줍니다:
{"statusCode":500,"success":false,"message":"401 Unauthorized – check your API key and ensure it has access to the requested model.","stack":{}}실제 키를 사용하면 응답의 text에 답변이 담깁니다.
Kubernetes에서는 Kubernetes에서가 설명하는 빌드를 적용하고 그 시드 Job이 완료된 상태에서, 적용한 네임스페이스에 있는 Flowise의 Service인 flowise-default로 로컬 포트를 전달하고, 명령을 계속 실행 상태로 둡니다:
kubectl port-forward -n <namespace> svc/flowise-default 3000:3000다른 터미널에서 위의 질문은 변경 없이 같은 주소로 챗플로우에 도달합니다. 이 실행에서도 자리 표시자 키에 대해 같은 거부를 받았습니다.
아래 명령으로 스택을 중지합니다. -v는 Flowise의 데이터 볼륨도 제거하며, 이와 함께 소유자 계정과 시드 서비스가 작성한 chatflow도 제거됩니다:
docker compose -p support-chat -f dist/compose/docker-compose.yaml down -vKubernetes에서
같은 챗플로우는 helm 대상을 사용해 Kubernetes용으로 가져올 수 있습니다. Docker Compose용 초안은 이미 source에 있고, 가져오기는 그곳의 Aggregate를 절대 덮어쓰지 않으므로, --output-dir로 이 초안을 별도의 폴더에 작성한 다음 그 폴더에서 검증하고 빌드합니다:
aggrega import support-chat.json --target helm --output-dir helmcd helmaggrega validate --release release.yamlaggrega build --release release.yaml초안은 대상이 다른 부분에서 달라집니다. Manifest는 플랫폼을 helm/flowise에, 모델을 helm/openai에, 각 시크릿을 네임스페이스에 이미 있는 Secret에서 그것을 읽는 helm/k8s-existing-secret에 매핑합니다. Release는 소유자의 비밀번호와 OpenAI 키를 각각 자신의 Secret을 지정하는 core/referenced-secret로 연결하고, 세 가지 답변을 모두 답변 파일에서 가져옵니다: 소유자의 이메일, flowise-owner, openai-api-key.
빌드는 작업 공간 루트인 source의 dist/helm/ 아래, 즉 helm에서 보면 ../dist/helm/에 일반 Kubernetes 매니페스트를 작성하며, 그중에는 chatflow의 시드가 Job으로 포함됩니다. 적용할 네임스페이스에 두 Secret을 만들고 각각 데이터 키 value 아래에 값을 저장한 다음, 가져오기 실행 방식의 실행 단계에서 설명하는 대로 폴더를 적용합니다.