Update n8n and archive langflow

This commit is contained in:
2025-05-09 19:18:25 +10:00
parent bb3d1cc7db
commit e6e905d421
3 changed files with 1 additions and 302 deletions
-121
View File
@@ -1,121 +0,0 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
namespace: ai
name: langflow-pvc
spec:
accessModes:
- ReadWriteOnce
storageClassName: nfs-client
resources:
requests:
storage: 10Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: langflow
namespace: ai
labels:
app: langflow
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
app: langflow
template:
metadata:
labels:
app: langflow
name: langflow
spec:
containers:
- name: langflow
image: mirror.gcr.io/langflowai/langflow:1.3.4
imagePullPolicy: IfNotPresent
ports:
- containerPort: 7860
name: web
protocol: TCP
env:
- name: GENERIC_TIMEZONE
value: "Australia/Melbourne"
- name: TZ
value: "Australia/Melbourne"
- name: LANGFLOW_CONFIG_DIR
value: "/var/lib/langflow"
- name: LANGFLOW_SAVE_DB_IN_CONFIG_DIR
value: "true"
- name: LANGFLOW_REDIS_HOST
value: "redis-master.db"
- name: LANGFLOW_REDIS_PORT
value: "6379"
- name: LANGFLOW_CACHE_TYPE
value: "memory"
- name: LANGFLOW_PORT
value: "7860"
- name: DO_NOT_TRACK
value: "true"
volumeMounts:
- name: data
mountPath: "/var/lib/langflow"
resources:
requests:
cpu: 400m
memory: 1Gi
limits:
cpu: 1000m
memory: 2Gi
volumes:
- name: data
persistentVolumeClaim:
claimName: langflow-pvc
---
apiVersion: v1
kind: Service
metadata:
name: langflow
labels:
name: langflow
spec:
type: ClusterIP
selector:
app: langflow
ports:
- name: langflow
targetPort: web
port: 80
protocol: TCP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: langflow-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
kubernetes.io/tls-acme: "true"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
nginx.ingress.kubernetes.io/auth-url: "https://id.junv.cc/oauth2/auth"
nginx.ingress.kubernetes.io/auth-signin: "https://id.junv.cc/oauth2/start?rd=https%3A%2F%2F$host$request_uri"
spec:
tls:
- hosts:
- langflow.junv.cc
secretName: langflow-tls-new
rules:
- host: langflow.junv.cc
http:
paths:
- backend:
service:
name: langflow
port:
number: 80
path: /
pathType: Prefix
-180
View File
@@ -1,180 +0,0 @@
# # source https://github.com/lobehub/lobe-chat
# apiVersion: v1
# kind: PersistentVolumeClaim
# metadata:
# namespace: ai
# name: open-webui-pvc
# spec:
# accessModes:
# - ReadWriteOnce
# storageClassName: nfs-client
# resources:
# requests:
# storage: 10Gi
# ---
# apiVersion: v1
# kind: Service
# metadata:
# name: open-webui
# namespace: ai
# spec:
# ports:
# - port: 8080
# targetPort: 8080
# selector:
# app: open-webui
# ---
# apiVersion: apps/v1
# kind: Deployment
# metadata:
# name: open-webui
# spec:
# revisionHistoryLimit: 2
# selector:
# matchLabels:
# app: open-webui
# replicas: 1
# template:
# metadata:
# labels:
# app: open-webui
# spec:
# volumes:
# - name: data
# persistentVolumeClaim:
# claimName: open-webui-pvc
# containers:
# - name: open-webui
# image: ghcr.io/open-webui/open-webui:main
# # imagePullPolicy:
# ports:
# - containerPort: 8080
# env:
# - name: OPENAI_API_BASE_URL
# value: "https://api.openai.com/v1"
# - name: OPENAI_API_KEY
# valueFrom:
# secretKeyRef:
# name: openai-key
# key: key
# - name: SEARXNG_QUERY_URL
# value: http://searxng.home-apps:8080/
# - name: ENABLE_OLLAMA_API
# value: "false"
# - name: USE_OLLAMA
# value: "false"
# - name: USE_OLLAMA_DOCKER
# value: "true"
# # - name: OPENAI_API_KEY
# # value: "0p3n-w3bu!"
# # - name: OPENAI_API_BASE_URL
# # value: "http://open-webui-pipeline.ai:9090"
# resources:
# requests:
# cpu: 300m
# memory: 512Mi
# limits:
# cpu: 1000m
# memory: 1024Mi
# volumeMounts:
# - name: data
# mountPath: /app/backend/data
# ---
# apiVersion: networking.k8s.io/v1
# kind: Ingress
# metadata:
# name: open-webui-ingress
# annotations:
# kubernetes.io/ingress.class: "nginx"
# kubernetes.io/tls-acme: "true"
# cert-manager.io/cluster-issuer: "letsencrypt-prod"
# nginx.ingress.kubernetes.io/auth-url: "https://id.junv.cc/oauth2/auth"
# nginx.ingress.kubernetes.io/auth-signin: "https://id.junv.cc/oauth2/start?rd=https%3A%2F%2F$host$request_uri"
# spec:
# tls:
# - hosts:
# - ai.junv.cc
# secretName: open-webui-tls
# rules:
# - host: ai.junv.cc
# http:
# paths:
# - backend:
# service:
# name: open-webui
# port:
# number: 8080
# path: /
# pathType: Prefix
# ---
# apiVersion: v1
# kind: Service
# metadata:
# name: open-webui-pipeline
# namespace: ai
# spec:
# ports:
# - port: 9099
# targetPort: 9099
# selector:
# app: open-webui-pipeline
# ---
# apiVersion: apps/v1
# kind: Deployment
# metadata:
# name: open-webui-pipeline
# spec:
# revisionHistoryLimit: 2
# selector:
# matchLabels:
# app: open-webui-pipeline
# replicas: 1
# template:
# metadata:
# labels:
# app: open-webui-pipeline
# spec:
# volumes:
# - name: pipelines
# persistentVolumeClaim:
# claimName: open-webui-pipeline-pvc
# containers:
# - name: open-webui-pipeline
# image: ghcr.io/open-webui/pipelines:main
# imagePullPolicy: IfNotPresent
# ports:
# - containerPort: 9099
# # env:
# # - name: SEARXNG_QUERY_URL
# # value: http://searxng.home-apps:8080/
# resources:
# requests:
# cpu: 200m
# memory: 256Mi
# limits:
# cpu: 1000m
# memory: 1024Mi
# volumeMounts:
# - name: pipelines
# mountPath: /app/pipelines
# ---
# apiVersion: v1
# kind: PersistentVolumeClaim
# metadata:
# namespace: ai
# name: open-webui-pipeline-pvc
# spec:
# accessModes:
# - ReadWriteOnce
# storageClassName: nfs-client
# resources:
# requests:
# storage: 10Gi
+1 -1
View File
@@ -33,7 +33,7 @@ spec:
spec:
containers:
- name: n8n
image: mirror.gcr.io/n8nio/n8n:1.90.1
image: mirror.gcr.io/n8nio/n8n:1.92.2
imagePullPolicy: IfNotPresent
securityContext:
runAsUser: 0