clean up and add routes to paas site

This commit is contained in:
sirius0xdev 2026-04-28 03:31:52 +00:00
commit 9f5d1fb723
36 changed files with 222 additions and 10 deletions

View file

@ -1,18 +0,0 @@
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
name: external-http-gateway
namespace: customer1
spec:
gatewayClassName: gke-l7-global-external-managed # Use gke-l7-global-external-http for external, or gke-l7-rilb for internal
listeners:
- name: https
protocol: HTTPS
port: 443
tls:
mode: Terminate
options:
networking.gke.io/pre-shared-certs: n8n-sirius-sec-com
allowedRoutes:
namespaces:
from: "All"

View file

@ -0,0 +1,22 @@
apiVersion: v1
data: ENC[AES256_GCM,data:APQ5nJznd+lpVS7cPzEN2OE4wEFqQTm8FX4/ayYtKMI/6Hg+YnwG,iv:rbpMzYgjtCAZDretQH1X1Q+B6Kjzc1ZdBLWEF5/rr2k=,tag:QIP49Xll4vR9Om9+AsyRUA==,type:str]
kind: Secret
metadata:
creationTimestamp: null
name: n8n-secret
namespace: customer1
sops:
age:
- recipient: age1uuxf066xuuqgvjppxfcmqkwfcufnwp3wcwnl9h20g9k4l8nkw9jsaungf7
enc: |
-----BEGIN AGE ENCRYPTED FILE-----
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBIVjJ6cjJRQVpWZmd1QUNa
OEM4NGFrMElQWHFWeW9uamw2azhyeUxHVkRjCmpTYzVMRTE4djA1OHVJNXRQcENR
RTdEZ3E0K1dQQ0xVM05NclNmNStEbFEKLS0tIGxWSHNRY1EwT0lQUXd3RWdKMW9J
ajhGaTJUYVV6VDk4cjlGT1lBRzNSeFkKLPJ4npljYF9wZG37vZq8T14mm66kfqq2
nYmb5iHr/8U7XbrUeIoDk5xh6/2We5NA13QTJzvnaeUvjwCfjvXVBg==
-----END AGE ENCRYPTED FILE-----
lastmodified: "2026-01-06T03:38:52Z"
mac: ENC[AES256_GCM,data:dNemv41znSffIq0CM3t+CTohnMmB4Atwa07DFcqnnP17t4hBYLLxmPB+eUnHWn0b8i8ULGXTiSzNT0rItgqk69OE6KM5t+2rso+KASOyykcmMbuQ4LmfFSXTujaaqYSF2CKOU6fF2QlBURHhi7fwQlz4I6FWE4/v5NCB/9rAs20=,iv:ZmcrL0ShXodKUUVVsVShndO0IuFU0kYkW9nF3r83LtE=,tag:tMv6+I0vZU+1NRMHJmbAcQ==,type:str]
encrypted_regex: ^(data|stringData)$
version: 3.11.0

View file

@ -1,128 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: openclaw-brain-vllm
namespace: customer1
labels:
app: openclaw-brain
spec:
replicas: 1
selector:
matchLabels:
app: openclaw-brain
template:
metadata:
labels:
app: openclaw-brain
spec:
nodeSelector:
cloud.google.com/gke-accelerator: "nvidia-a100-80gb"
tolerations:
- key: "nvidia.com/gpu-a100-80gb"
operator: "Equal"
value: "present"
effect: "NoSchedule"
containers:
- name: vllm-brain
image: vllm/vllm-openai:latest
command: ["python3", "-m", "vllm.entrypoints.openai.api_server"]
env:
- name: HF_TOKEN
value: ""
- name: TOKENIZER_MODE
value: "hf"
args:
- --model=Youssofal/Qwen3.6-27B-Abliterated-Heretic-Uncensored-BF16
- --host=0.0.0.0
- --port=8000
- --tensor-parallel-size=1
- --tokenizer-mode=hf
- --gpu-memory-utilization=0.95
- --kv-cache-dtype=fp8
- --max-model-len=131072
- --enable-auto-tool-choice
- --enable-chunked-prefill
- --max-num-batched-tokens=8192
- --max-num-seqs=4
- --trust-remote-code
- --dtype=auto
- --enable-prefix-caching
- --tool-call-parser=qwen3_xml
- --reasoning-parser=qwen3
- --disable-custom-all-reduce
ports:
- containerPort: 8000
resources:
limits:
nvidia.com/gpu: 1
memory: "100Gi"
cpu: "16"
requests:
nvidia.com/gpu: 1
memory: "80Gi"
cpu: "8"
startupProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 10
failureThreshold: 60
successThreshold: 1
livenessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 180
periodSeconds: 15
failureThreshold: 5
successThreshold: 1
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /v1/models
port: 8000
initialDelaySeconds: 120
periodSeconds: 10
timeoutSeconds: 15
failureThreshold: 8
successThreshold: 1
volumeMounts:
- name: model-cache
mountPath: /root/.cache/huggingface
volumes:
- name: model-cache
persistentVolumeClaim:
claimName: vllm-model-qwen3.6-27b-uncensored
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: vllm-model-qwen3.6-27b-uncensored
namespace: customer1
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi
---
apiVersion: v1
kind: Service
metadata:
name: openclaw-brain-service
namespace: customer1
spec:
selector:
app: openclaw-brain
ports:
- protocol: TCP
port: 8000
targetPort: 8000
type: ClusterIP

View file

@ -1,20 +0,0 @@
apiVersion: http.keda.sh/v1alpha1
kind: HTTPScaledObject
metadata:
name: openclaw-brain-a100-scaling
namespace: customer1
spec:
hosts:
- a100-vllm.internal.cluster # Replace with actual internal routing host if needed
scaleTargetRef:
name: openclaw-brain-vllm
kind: Deployment
apiVersion: apps/v1
service: openclaw-brain-service
port: 8000
paths:
- path: "^/v1/chat/completions"
replicas:
min: 0
max: 1
scaledownPeriod: 900 # 15 minutes of idle time before scaling to zero

View file

@ -1,17 +0,0 @@
apiVersion: http.keda.sh/v1alpha1
kind: HTTPScaledObject
metadata:
name: openclaw-brain-a100-scaling
namespace: customer1
spec:
scaleTargetRef:
name: openclaw-brain-vllm
kind: Deployment
apiVersion: apps/v1
hosts:
- openclaw-brain-service.customer1.svc.cluster.local
replicas:
min: 0
max: 1
targetPendingRequests: 1
scaledownPeriod: 900

View file

@ -1,14 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
# - vllm-l4.yaml
- keda-a100.yaml
- pvc.yaml
- new-configmap.yaml
# - deployment.yaml
- service.yaml
- openclaw-secrets.yaml
- pg-cluster-openclaw.yaml
#- a100-vllm.yaml
#- pg-cluster-openclaw.yaml
- xai-apikey.yaml
- gateway-routes/route.yaml

View file

@ -1,89 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: openclaw-brain-vllm
namespace: customer1
labels:
app: openclaw-brain
spec:
replicas: 1
selector:
matchLabels:
app: openclaw-brain
template:
metadata:
labels:
app: openclaw-brain
spec:
nodeSelector:
cloud.google.com/gke-accelerator: "nvidia-a100-80gb"
tolerations:
- key: "nvidia.com/gpu-a100-80gb"
operator: "Equal"
value: "present"
effect: "NoSchedule"
containers:
- name: vllm-brain
image: vllm/vllm-openai:v0.19.1
command: ["python3", "-m", "vllm.entrypoints.openai.api_server"]
env:
- name: HF_TOKEN
value: ""
- name: VLLM_TOKENIZER_MODE
value: "auto"
args:
- --model=coder3101/Qwen3.5-27B-heretic
- --host=0.0.0.0
- --port=8000
- --tensor-parallel-size=1
- --gpu-memory-utilization=0.95
- --max-model-len=24576
- --enable-auto-tool-choice
- --trust-remote-code
- --dtype=auto
- --enable-prefix-caching
##- --limit-mm-per-prompt='{"image"=1, "video"=0}' # Optional: limit vision if not heavily using images yet
ports:
- containerPort: 8000
resources:
limits:
nvidia.com/gpu: 1
memory: "80Gi"
cpu: "16"
requests:
nvidia.com/gpu: 1
memory: "60Gi"
cpu: "8"
volumeMounts:
- name: model-cache
mountPath: /root/.cache/huggingface
volumes:
- name: model-cache
persistentVolumeClaim:
claimName: vllm-model-cache-pvc
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: vllm-model-cache-pvc
namespace: customer1
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Gi
---
apiVersion: v1
kind: Service
metadata:
name: openclaw-brain-service
namespace: customer1
spec:
selector:
app: openclaw-brain
ports:
- protocol: TCP
port: 8000
targetPort: 8000
type: ClusterIP

View file

@ -1,96 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: openclaw-brain-vllm-l4
namespace: customer1
labels:
app: openclaw-brain-l4
spec:
replicas: 1
selector:
matchLabels:
app: openclaw-brain-l4
template:
metadata:
labels:
app: openclaw-brain-l4
spec:
nodeSelector:
workload: "llm-analyst"
tolerations:
- key: "nvidia.com/gpu"
operator: "Equal"
value: "present"
effect: "NoSchedule"
containers:
- name: vllm-brain-l4
image: vllm/vllm-openai:latest
command: ["python3", "-m", "vllm.entrypoints.openai.api_server"]
env:
- name: HF_TOKEN
value: ""
- name: VLLM_LOGGING_LEVEL
value: DEBUG
args:
- --model=p-e-w/Qwen3-8B-heretic
- --host=0.0.0.0
- --port=8000
- --tensor-parallel-size=1
- --gpu-memory-utilization=0.95
- --max-model-len=32768
- --kv-cache-dtype=fp8
- --max-num-batched-tokens=2048
- --max-num-seqs=128
- --enable-chunked-prefill
- --enable-auto-tool-choice
- --trust-remote-code
- --dtype=auto
- --tool-call-parser=hermes
- --enable-prefix-caching
ports:
- containerPort: 8000
resources:
limits:
nvidia.com/gpu: 1
memory: "30Gi"
cpu: "8"
requests:
nvidia.com/gpu: 1
memory: "16Gi"
cpu: "4"
volumeMounts:
- name: model-cache
mountPath: /root/.cache/huggingface
volumes:
- name: model-cache
persistentVolumeClaim:
claimName: vllm-model-cache-pvc-l4
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: vllm-model-cache-pvc-l4
namespace: customer1
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi
---
apiVersion: v1
kind: Service
metadata:
name: openclaw-brain-service-l4
namespace: customer1
spec:
selector:
app: openclaw-brain-l4
ports:
- protocol: TCP
port: 8000
targetPort: 8000
type: ClusterIP

View file

@ -39,4 +39,4 @@ spec:
- protocol: TCP
port: 80
targetPort: 80
type: ClusterIP
type: ClusterIP