From 79c0eb6adac2cb7e39355e848b3f8f4ee4f08245 Mon Sep 17 00:00:00 2001 From: jolestar Date: Fri, 20 Dec 2024 12:08:01 +0800 Subject: [PATCH] Roochbot deploy config (#3070) * [kube] Roochbot deployment * update roochbot config * update image --- .../roochbot/mainnet-roochbot-config.yaml | 22 +++++++++ .../roochbot/mainnet-roochbot-deployment.yaml | 46 +++++++++++++++++++ .../roochbot/mainnet-roochbot-pvc.yaml | 11 +++++ 3 files changed, 79 insertions(+) create mode 100644 kube/mainnet/roochbot/mainnet-roochbot-config.yaml create mode 100644 kube/mainnet/roochbot/mainnet-roochbot-deployment.yaml create mode 100644 kube/mainnet/roochbot/mainnet-roochbot-pvc.yaml diff --git a/kube/mainnet/roochbot/mainnet-roochbot-config.yaml b/kube/mainnet/roochbot/mainnet-roochbot-config.yaml new file mode 100644 index 0000000000..d628dec2e2 --- /dev/null +++ b/kube/mainnet/roochbot/mainnet-roochbot-config.yaml @@ -0,0 +1,22 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: roochbot-config + namespace: mainnet +data: + TWITTER_DRY_RUN: "false" + TWITTER_TARGET_USERS: "RoochNetwork,jolestar" + MAX_TWEET_LENGTH: "240" + GITHUB_OWNER: "rooch-network" + GITHUB_REPO: "roochbot_knowledge" + GITHUB_BRANCH: "main" + GITHUB_PATH: "/" + ELEVENLABS_MODEL_ID: "eleven_multilingual_v2" + ELEVENLABS_VOICE_ID: "21m00Tcm4TlvDq8ikWAM" + ELEVENLABS_VOICE_STABILITY: "0.5" + ELEVENLABS_VOICE_SIMILARITY_BOOST: "0.9" + ELEVENLABS_VOICE_STYLE: "0.66" + ELEVENLABS_VOICE_USE_SPEAKER_BOOST: "false" + ELEVENLABS_OPTIMIZE_STREAMING_LATENCY: "4" + ELEVENLABS_OUTPUT_FORMAT: "pcm_16000" + SERVER_PORT: "3000" \ No newline at end of file diff --git a/kube/mainnet/roochbot/mainnet-roochbot-deployment.yaml b/kube/mainnet/roochbot/mainnet-roochbot-deployment.yaml new file mode 100644 index 0000000000..9eecc834b4 --- /dev/null +++ b/kube/mainnet/roochbot/mainnet-roochbot-deployment.yaml @@ -0,0 +1,46 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: roochbot + namespace: mainnet +spec: + replicas: 1 + selector: + matchLabels: + app: roochbot + template: + metadata: + labels: + app: roochbot + spec: + containers: + - name: roochbot + image: jolestar/eliza-tee:0.1.6-alpha.4-20241219.2 + command: ["pnpm"] + args: + - "start" + - "--non-interactive" + - "--characters" + - "/app/characters/roochbot.character.json" + envFrom: + - configMapRef: + name: roochbot-config + - secretRef: + name: roochbot-secrets + ports: + - containerPort: 3000 + volumeMounts: + - name: roochbot-data + mountPath: /app/agent/data + - name: character-config + mountPath: /app/characters + volumes: + - name: roochbot-data + persistentVolumeClaim: + claimName: roochbot-data + - name: character-config + configMap: + name: roochbot-character-config + items: + - key: roochbot.character.json + path: roochbot.character.json \ No newline at end of file diff --git a/kube/mainnet/roochbot/mainnet-roochbot-pvc.yaml b/kube/mainnet/roochbot/mainnet-roochbot-pvc.yaml new file mode 100644 index 0000000000..ac07dd857f --- /dev/null +++ b/kube/mainnet/roochbot/mainnet-roochbot-pvc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: roochbot-data + namespace: mainnet +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 1Gi \ No newline at end of file