mirror of
https://github.com/ghndrx/starlane-router.git
synced 2026-02-10 06:45:01 +00:00
feat: initial commit for starlane-router (FastAPI + Gradient)
This commit is contained in:
59
k8s/deployment.yaml
Normal file
59
k8s/deployment.yaml
Normal file
@@ -0,0 +1,59 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: a2a-router
|
||||
labels:
|
||||
app: a2a-router
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: a2a-router
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: a2a-router
|
||||
spec:
|
||||
containers:
|
||||
- name: a2a-router
|
||||
image: REPLACE_WITH_IMAGE
|
||||
imagePullPolicy: IfNotPresent
|
||||
env:
|
||||
- name: GRADIENT_ENDPOINT_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: a2a-secrets
|
||||
key: GRADIENT_ENDPOINT_URL
|
||||
- name: GRADIENT_API_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: a2a-secrets
|
||||
key: GRADIENT_API_KEY
|
||||
- name: GRADIENT_AUTH_SCHEME
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: a2a-secrets
|
||||
key: GRADIENT_AUTH_SCHEME
|
||||
- name: ROUTE_KEYWORDS
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
name: a2a-config
|
||||
key: ROUTE_KEYWORDS
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 8080
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: a2a-router
|
||||
labels:
|
||||
app: a2a-router
|
||||
spec:
|
||||
selector:
|
||||
app: a2a-router
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
protocol: TCP
|
||||
Reference in New Issue
Block a user