ai/at
1
0
This commit is contained in:
2026-02-04 22:52:06 +09:00
parent 88cb429951
commit 718820daec
16 changed files with 1001 additions and 0 deletions

67
k8s/jetstream.yaml Normal file
View File

@@ -0,0 +1,67 @@
apiVersion: v1
kind: Service
metadata:
name: jetstream
namespace: atproto
spec:
selector:
app: jetstream
ports:
- port: 6008
targetPort: 6008
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: jetstream-data
namespace: atproto
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 2Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: jetstream
namespace: atproto
spec:
replicas: 1
selector:
matchLabels:
app: jetstream
template:
metadata:
labels:
app: jetstream
spec:
containers:
- name: jetstream
image: registry/jetstream
ports:
- containerPort: 6008
env:
- name: JETSTREAM_WS_URL
value: "ws://bgs:2470/xrpc/com.atproto.sync.subscribeRepos"
- name: JETSTREAM_DATA_DIR
value: "/data"
- name: JETSTREAM_LISTEN_ADDR
value: ":6008"
- name: JETSTREAM_METRICS_LISTEN_ADDR
value: ":6009"
- name: JETSTREAM_LIVENESS_TTL
value: "96h"
volumeMounts:
- name: data
mountPath: /data
livenessProbe:
httpGet:
path: /
port: 6009
initialDelaySeconds: 10
periodSeconds: 10
volumes:
- name: data
persistentVolumeClaim:
claimName: jetstream-data