mirror of
https://github.com/OpenStaticFish/MicroServices.git
synced 2026-10-13 06:35:12 +00:00
Add Lightpanda browser services and automation scripts
Add lightpanda-cdp and lightpanda-mcp services for local (Tilt) and production (deploy/prod/) with Traefik routing, HPAs, and CI image publishing. Create scripts for concurrent Bing search via MCP and CDP screenshots. Update flake.nix with websocat dependency. Make webshare-secret helper tolerant of missing Doppler credentials.
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
# --- Lightpanda CDP Kubernetes Manifests ---
|
||||
# Managed by Tilt - run `tilt up` to deploy
|
||||
# Tear down with: `tilt down`
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: lightpanda-cdp-deployment
|
||||
labels:
|
||||
app: lightpanda-cdp
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: lightpanda-cdp
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 1
|
||||
maxUnavailable: 0
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: lightpanda-cdp
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 30
|
||||
containers:
|
||||
- name: lightpanda-cdp
|
||||
image: lightpanda/browser:nightly
|
||||
args:
|
||||
- /bin/lightpanda
|
||||
- serve
|
||||
- --host
|
||||
- 0.0.0.0
|
||||
- --port
|
||||
- "9222"
|
||||
- --log-level
|
||||
- warn
|
||||
ports:
|
||||
- containerPort: 9222
|
||||
env:
|
||||
- name: LIGHTPANDA_DISABLE_TELEMETRY
|
||||
value: "true"
|
||||
resources:
|
||||
requests:
|
||||
memory: "128Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "1000m"
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /json/version
|
||||
port: 9222
|
||||
initialDelaySeconds: 2
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /json/version
|
||||
port: 9222
|
||||
initialDelaySeconds: 2
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 2
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: lightpanda-cdp-service
|
||||
spec:
|
||||
selector:
|
||||
app: lightpanda-cdp
|
||||
ports:
|
||||
- name: cdp
|
||||
protocol: TCP
|
||||
port: 9222
|
||||
targetPort: 9222
|
||||
type: ClusterIP
|
||||
@@ -0,0 +1,71 @@
|
||||
# --- Lightpanda MCP Kubernetes Manifests ---
|
||||
# Managed by Tilt - run `tilt up` to deploy
|
||||
# Tear down with: `tilt down`
|
||||
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: lightpanda-mcp-deployment
|
||||
labels:
|
||||
app: lightpanda-mcp
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: lightpanda-mcp
|
||||
strategy:
|
||||
type: RollingUpdate
|
||||
rollingUpdate:
|
||||
maxSurge: 1
|
||||
maxUnavailable: 0
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: lightpanda-mcp
|
||||
spec:
|
||||
terminationGracePeriodSeconds: 30
|
||||
containers:
|
||||
- name: lightpanda-mcp
|
||||
image: lightpanda-mcp
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
env:
|
||||
- name: LIGHTPANDA_DISABLE_TELEMETRY
|
||||
value: "true"
|
||||
resources:
|
||||
requests:
|
||||
memory: "192Mi"
|
||||
cpu: "250m"
|
||||
limits:
|
||||
memory: "768Mi"
|
||||
cpu: "1000m"
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 8000
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /healthz
|
||||
port: 8000
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 5
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 2
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: lightpanda-mcp-service
|
||||
spec:
|
||||
selector:
|
||||
app: lightpanda-mcp
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
port: 8000
|
||||
targetPort: 8000
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user