Add Hermes Agent deployment to customer1 namespace
This commit is contained in:
parent
2f163fab36
commit
ca2f14f25b
3 changed files with 54 additions and 0 deletions
49
apps/base/customer1/hermes-agent/deployment.yaml
Normal file
49
apps/base/customer1/hermes-agent/deployment.yaml
Normal 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
|
||||||
4
apps/base/customer1/hermes-agent/kustomization.yaml
Normal file
4
apps/base/customer1/hermes-agent/kustomization.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
|
|
@ -13,3 +13,4 @@ resources:
|
||||||
- customer1-db-credentials.yaml
|
- customer1-db-credentials.yaml
|
||||||
- apigateway.yaml
|
- apigateway.yaml
|
||||||
- backup-cronjob.yaml
|
- backup-cronjob.yaml
|
||||||
|
- hermes-agent
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue