Merge pull request #47 from sirius0xdev/feature/hermes-agent-deployment

Add Hermes Agent deployment to customer1 namespace
This commit is contained in:
sirius0xdev 2026-04-20 16:11:07 -04:00 committed by GitHub
commit b4d4bd9841
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 54 additions and 0 deletions

View file

@ -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

View file

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml

View file

@ -13,3 +13,4 @@ resources:
- customer1-db-credentials.yaml
- apigateway.yaml
- backup-cronjob.yaml
- hermes-agent