From 1dc1181a032739171ca729d252b91433c35ad9be Mon Sep 17 00:00:00 2001 From: wbsong111 Date: Fri, 10 Jan 2025 16:51:18 +0900 Subject: [PATCH] Add custom-values.yaml, CUSTOM-README.md --- charts/flowise/CUSTOM-README.md | 108 ++++++++++++++++++++++++++++++ charts/flowise/custom-values.yaml | 37 ++++++++++ 2 files changed, 145 insertions(+) create mode 100644 charts/flowise/CUSTOM-README.md create mode 100644 charts/flowise/custom-values.yaml diff --git a/charts/flowise/CUSTOM-README.md b/charts/flowise/CUSTOM-README.md new file mode 100644 index 0000000..69f2906 --- /dev/null +++ b/charts/flowise/CUSTOM-README.md @@ -0,0 +1,108 @@ + +# flowise 배포 + +## 1. 배포 방법 + +### 1) 배포시 주의 사항 + +- 사용할 모델에 따라서 적절한 자원(CPU, Memory, GPU)를 설정한 후 배포 해야한다. + +### 2) 배포 방법 + +``` sh +git clone https://github.com/paasup/dip-catalog.git +cd charts/flowise +helm upgrade flowise ./ -f custom-values.yaml --install -n ollama --create-namespace +``` + + + +## 2.custom-values.yaml 설명 + +- custom-values.yaml에 정의된 값에 대한 설명이다. + +### 1) Pod 설정 + + +| Name | 설명 | 기본값 | +| ---------------------- | ------------------------------------------------------------ | ------ | +| `image.registry` | 오프라인 설치 시에 설정.
오프라인 설치시에는 "paasup.io"로 설정 | `"docker.io"` | +| `image.tag` | 이미지 태그 설정 | '0.5.4' | +| `persistence.enabled` | PV의 사용 여부 | 'true' | +| `persistence.size` | PV 용량 | "1Gi" | +| `persistence.storageClass` | PV 생성 시 사용할 Storage Class | "" | +| `resources` | Ollama 서버의 시스템 자원 설정.
LLM 모델에 따른 적절한 CPU, Memory 설정이 필요하다. | `custom-values.yaml` 참고 | + + + +### 2) flowise 사용자 설정 + +- flowse에서 사용할 사용자 이름/패스워드를 설정한다. + +| Name | 설명 | 기본값 | +| --------------------- | ------------------------ | --------- | +| `config.username` | flowise에서 사용할 사용자 이름 | "flowise" | +| `config.password` | flowise에서 사용할 패스워드 | "flowise" | + + + +### 3) Ingress 설정 + +#### 3.1) tls 시크릿 직접 생성 + +- flowise에서 ingress 사용을 위해서는 다음과 같이 설정할 수 있다. + + ``` yaml + ingress: + enabled: true + hosts: + - host: flowise.example.org + paths: + - path: / + tls: + - hosts: + - flowise.example.org + secretName: flowise-tls-secret + ``` + +- ingress 사용을 위해서는 인증서를 secret으로 제공해야한다. 로컬 파일을 이용해 secret을 생성하는 방법은 다음과 같다. + + ``` sh + kubectl create secret tls flowise-tls-secret --cert= --key= -n + ``` + +#### 3.2) cert-manager를 이용한 자동 생성 + +- cert manager를 통해 인증서 자동 생성 시 `custom-values.yaml` 수정한다. +- `ingress.annotations.cert-manager.io/cluster-issuer`에 미리 배포된 Cluster Issuer의 이름으로 변경한다. + + ``` yaml + ingress: + enabled: true + annotations: + cert-manager.io/cluster-issuer: "selfsigned-issuer" + cert-manager.io/duration: 8760h + cert-manager.io/renew-before: 720h + hosts: + - host: flowise.example.org + paths: + - / + tls: + - hosts: + - flowise.example.org + secretName: flowise-tls-secret + ``` + +### 4) Postgresql 설정 + +- 내장 postgresql을 사용하여 배포할 수 있다. +- custom-values.yaml + ``` yaml + postgresql: + enabled: true + primary: + persistence: + enabled: true + size: 8Gi + storageClass: "" + ``` \ No newline at end of file diff --git a/charts/flowise/custom-values.yaml b/charts/flowise/custom-values.yaml new file mode 100644 index 0000000..b9f2091 --- /dev/null +++ b/charts/flowise/custom-values.yaml @@ -0,0 +1,37 @@ +image: + registry: docker.io + +persistence: + enabled: true + size: 1Gi + storageClass: longhorn + +resources: {} + +config: + username: flowise + password: flowise + +ingress: + enabled: true + annotations: + cert-manager.io/cluster-issuer: "selfsigned-issuer" + cert-manager.io/duration: 8760h + cert-manager.io/renew-before: 720h + hosts: + - host: flowise.example.org + paths: + - / + tls: + - hosts: + - flowise.example.org + secretName: flowise-tls-secret + +postgresql: + enabled: true + primary: + persistence: + enabled: true + size: 8Gi + storageClass: "" +