From ca2f14f25bc85f733e03fe5cd1cbd434a6a83715 Mon Sep 17 00:00:00 2001 From: Sirius Claw Date: Mon, 20 Apr 2026 19:20:15 +0000 Subject: [PATCH] Add Hermes Agent deployment to customer1 namespace --- .../customer1/hermes-agent/deployment.yaml | 49 +++++++++++++++++++ .../customer1/hermes-agent/kustomization.yaml | 4 ++ apps/base/customer1/kustomization.yaml | 1 + 3 files changed, 54 insertions(+) create mode 100644 apps/base/customer1/hermes-agent/deployment.yaml create mode 100644 apps/base/customer1/hermes-agent/kustomization.yaml diff --git a/apps/base/customer1/hermes-agent/deployment.yaml b/apps/base/customer1/hermes-agent/deployment.yaml new file mode 100644 index 0000000..4fa8493 --- /dev/null +++ b/apps/base/customer1/hermes-agent/deployment.yaml @@ -0,0 +1,49 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: hermes-agent + namespace: customer1 +spec: + replicas: 1 + selector: + matchLabels: + app: hermes-agent + template: + metadata: + labels: + app: hermes-agent + spec: + containers: + - name: hermes-agent + image: python:3.11-slim + command: ["/bin/bash", "-c"] + args: + - | + apt-get update && apt-get install -y curl git build-essential + export PATH="/root/.local/bin:$PATH" + if [ ! -f /root/.local/bin/hermes ]; then + echo "Installing Hermes Agent..." + curl -fsSL https://raw.githubusercontent.com/NousResearch/hermes-agent/main/scripts/install.sh | bash + fi + echo "Hermes Agent installed. Starting gateway..." + # Wait for user to setup gateway via exec, or start it if already configured + hermes gateway start || tail -f /dev/null + volumeMounts: + - name: hermes-data + mountPath: /root + volumes: + - name: hermes-data + persistentVolumeClaim: + claimName: hermes-agent-pvc +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: hermes-agent-pvc + namespace: customer1 +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 5Gi diff --git a/apps/base/customer1/hermes-agent/kustomization.yaml b/apps/base/customer1/hermes-agent/kustomization.yaml new file mode 100644 index 0000000..9c2d28b --- /dev/null +++ b/apps/base/customer1/hermes-agent/kustomization.yaml @@ -0,0 +1,4 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - deployment.yaml diff --git a/apps/base/customer1/kustomization.yaml b/apps/base/customer1/kustomization.yaml index 3b613eb..ae832cc 100644 --- a/apps/base/customer1/kustomization.yaml +++ b/apps/base/customer1/kustomization.yaml @@ -13,3 +13,4 @@ resources: - customer1-db-credentials.yaml - apigateway.yaml - backup-cronjob.yaml + - hermes-agent