From 62f51aa585a525b7268e05e0eb104765bdac9ef5 Mon Sep 17 00:00:00 2001 From: "M.-Leander Reimer" Date: Thu, 5 Dec 2024 16:49:11 +0100 Subject: [PATCH] Added Flowise No-Code UI. --- .../platform/flowise/backend-config.yaml | 7 ++++ .../platform/flowise/deployment.yaml | 32 +++++++++++++++++++ .../platform/flowise/kustomization.yaml | 7 ++++ .../platform/flowise/namespace.yaml | 4 +++ infrastructure/platform/flowise/service.yaml | 17 ++++++++++ 5 files changed, 67 insertions(+) create mode 100644 infrastructure/platform/flowise/backend-config.yaml create mode 100644 infrastructure/platform/flowise/deployment.yaml create mode 100644 infrastructure/platform/flowise/kustomization.yaml create mode 100644 infrastructure/platform/flowise/namespace.yaml create mode 100644 infrastructure/platform/flowise/service.yaml diff --git a/infrastructure/platform/flowise/backend-config.yaml b/infrastructure/platform/flowise/backend-config.yaml new file mode 100644 index 0000000..b4d3526 --- /dev/null +++ b/infrastructure/platform/flowise/backend-config.yaml @@ -0,0 +1,7 @@ +apiVersion: cloud.google.com/v1 +kind: BackendConfig +metadata: + name: flowise-backendconfig + namespace: flowise +spec: + timeoutSec: 600 \ No newline at end of file diff --git a/infrastructure/platform/flowise/deployment.yaml b/infrastructure/platform/flowise/deployment.yaml new file mode 100644 index 0000000..5943c8d --- /dev/null +++ b/infrastructure/platform/flowise/deployment.yaml @@ -0,0 +1,32 @@ +# deployment.yaml +apiVersion: apps/v1 +kind: Deployment +metadata: + name: flowise + namespace: flowise + labels: + app: flowise +spec: + selector: + matchLabels: + app: flowise + replicas: 1 + template: + metadata: + labels: + app: flowise + spec: + containers: + - name: flowise + image: gcr.io/cloud-native-experience-lab/flowise:2.2.1 + imagePullPolicy: Always + resources: + requests: + cpu: "1" + memory: "1Gi" + limits: + cpu: "2" + memory: "2Gi" + ports: + - name: http + containerPort: 3000 \ No newline at end of file diff --git a/infrastructure/platform/flowise/kustomization.yaml b/infrastructure/platform/flowise/kustomization.yaml new file mode 100644 index 0000000..52910ce --- /dev/null +++ b/infrastructure/platform/flowise/kustomization.yaml @@ -0,0 +1,7 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - namespace.yaml + # - deployment.yaml + # - backend-config.yaml + # - service.yaml \ No newline at end of file diff --git a/infrastructure/platform/flowise/namespace.yaml b/infrastructure/platform/flowise/namespace.yaml new file mode 100644 index 0000000..ebd836c --- /dev/null +++ b/infrastructure/platform/flowise/namespace.yaml @@ -0,0 +1,4 @@ +kind: Namespace +apiVersion: v1 +metadata: + name: flowise \ No newline at end of file diff --git a/infrastructure/platform/flowise/service.yaml b/infrastructure/platform/flowise/service.yaml new file mode 100644 index 0000000..def4a3b --- /dev/null +++ b/infrastructure/platform/flowise/service.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Service +metadata: + name: flowise-service + namespace: flowise + annotations: + cloud.google.com/backend-config: '{"default": "flowise-backendconfig"}' + labels: + app: flowise +spec: + ports: + - protocol: TCP + port: 80 + targetPort: http + selector: + app: flowise + type: LoadBalancer