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

53
k8s/plc.yaml Normal file
View File

@@ -0,0 +1,53 @@
apiVersion: v1
kind: Service
metadata:
name: plc
namespace: atproto
spec:
selector:
app: plc
ports:
- port: 3000
targetPort: 3000
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: plc
namespace: atproto
spec:
replicas: 1
selector:
matchLabels:
app: plc
template:
metadata:
labels:
app: plc
spec:
containers:
- name: plc
image: registry/plc
ports:
- containerPort: 3000
env:
- name: DATABASE_URL
value: "postgres://postgres:postgres@database/plc"
- name: DB_CREDS_JSON
value: '{"username":"postgres","password":"postgres","host":"database","port":"5432","database":"plc"}'
- name: ENABLE_MIGRATIONS
value: "true"
- name: DB_MIGRATE_CREDS_JSON
value: '{"username":"postgres","password":"postgres","host":"database","port":"5432","database":"plc"}'
livenessProbe:
httpGet:
path: /_health
port: 3000
initialDelaySeconds: 10
periodSeconds: 10
readinessProbe:
httpGet:
path: /_health
port: 3000
initialDelaySeconds: 5
periodSeconds: 5