Files
llink/go/k8s/dev/orion.yaml
T
talksik 986a389606 feat: generate transcript and event-driven particle processing
This generates the transcript and shows the caption experience on the
client side for media particles. It also simplifies other side effects
that we must perform such as updating the `last_child_created_at` field
for stream and container particles.
2026-03-25 14:43:47 -07:00

107 lines
2.2 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: orion
spec:
selector:
matchLabels:
app: orion
replicas: 1
template:
metadata:
labels:
app: orion
spec:
serviceAccountName: default-service-account
nodeSelector:
cloud.google.com/gke-spot: "true"
terminationGracePeriodSeconds: 15
containers:
- name: orion
image: "orion"
ports:
- containerPort: 8080
resources:
requests:
memory: "52Mi"
cpu: 50m
limits:
memory: "52Mi"
cpu: 50m
env:
- name: "PORT"
value: "8080"
- name: "AERO_ADDR"
value: "aero:50051"
- name: "GCS_BUCKET"
value: "flowy-llink-bucket"
- name: "LLINK_POSTGRES_CONNECTION_URL"
value: "postgresql://neondb_owner:npg_ysiLkYo3Ez9G@ep-aged-feather-amfusyhe-pooler.c-5.us-east-1.aws.neon.tech/neondb?sslmode=require&channel_binding=require"
- name: "DEEPGRAM_SECRET"
valueFrom:
secretKeyRef:
name: shared-secrets
key: DEEPGRAM_SECRET
- name: "GCP_PROJECT"
value: "flowy-dev-440017"
- name: "GOOGLE_SERVICE_ACCOUNT_EMAIL"
value: "[email protected]"
- name: "REDIS_HOST"
value: "10.138.57.187"
---
apiVersion: v1
kind: Service
metadata:
name: orion
spec:
selector:
app: orion
ports:
- port: 8080
targetPort: 8080
protocol: TCP
---
kind: HTTPRoute
apiVersion: gateway.networking.k8s.io/v1beta1
metadata:
name: orion
spec:
parentRefs:
- kind: Gateway
name: external-gateway
hostnames:
- orion.dev.flowy.live
rules:
- backendRefs:
- name: orion
port: 8080
---
apiVersion: networking.gke.io/v1
kind: HealthCheckPolicy
metadata:
name: orion-service-health-check
spec:
default:
checkIntervalSec: 15
timeoutSec: 15
healthyThreshold: 1
unhealthyThreshold: 2
logConfig:
enabled: true
config:
type: HTTP
httpHealthCheck:
portSpecification: USE_FIXED_PORT
port: 8080
requestPath: /health
targetRef:
group: ""
kind: Service
name: orion