Use Infisical ExternalSecret for Gemini API key
Build Agents Runtime / build (push) Successful in 4m12s
Details
Build Agents Runtime / build (push) Successful in 4m12s
Details
This commit is contained in:
parent
6057da51cb
commit
c4c6001063
|
|
@ -33,6 +33,11 @@ spec:
|
||||||
env:
|
env:
|
||||||
- name: PYTHONPATH
|
- name: PYTHONPATH
|
||||||
value: "/app"
|
value: "/app"
|
||||||
|
- name: GOOGLE_API_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: agents-api-secrets
|
||||||
|
key: GOOGLE_API_KEY
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8000
|
- containerPort: 8000
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
|
@ -42,6 +47,24 @@ spec:
|
||||||
- name: app-volume
|
- name: app-volume
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
---
|
---
|
||||||
|
apiVersion: external-secrets.io/v1beta1
|
||||||
|
kind: ExternalSecret
|
||||||
|
metadata:
|
||||||
|
name: agents-api-secrets
|
||||||
|
namespace: ai-agents
|
||||||
|
spec:
|
||||||
|
refreshInterval: 1h
|
||||||
|
secretStoreRef:
|
||||||
|
kind: ClusterSecretStore
|
||||||
|
name: infisical
|
||||||
|
target:
|
||||||
|
name: agents-api-secrets
|
||||||
|
creationPolicy: Owner
|
||||||
|
data:
|
||||||
|
- secretKey: GOOGLE_API_KEY
|
||||||
|
remoteRef:
|
||||||
|
key: GOOGLE_API_KEY
|
||||||
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,6 @@ from langchain_google_genai import ChatGoogleGenerativeAI
|
||||||
from langgraph.prebuilt import create_react_agent
|
from langgraph.prebuilt import create_react_agent
|
||||||
from temporalio import activity
|
from temporalio import activity
|
||||||
|
|
||||||
os.environ["GOOGLE_API_KEY"] = "AIzaSyDKYcgVPN2oJirwzf_td3sBYMnXHWfVphU"
|
|
||||||
WHATSAPP_GATEWAY_URL = "http://whatsapp-gateway.ai-agents.svc.cluster.local:5001/api/send-message"
|
WHATSAPP_GATEWAY_URL = "http://whatsapp-gateway.ai-agents.svc.cluster.local:5001/api/send-message"
|
||||||
|
|
||||||
@tool
|
@tool
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue