feat: migrate VK bot to Callback API

This commit is contained in:
nyan404 committed 2026-10-10 21:33:56 +03:00
1 parent 2794546974
commit a04498d634
10 files changed
+438 -58

No files matched your search

+41
View File
@@ -118,14 +118,55 @@ spec:
name: belki-vk
key: VK_API_VERSION
optional: true
- name: VK_CALLBACK_SECRET
valueFrom:
secretKeyRef:
name: belki-vk
key: VK_CALLBACK_SECRET
- name: VK_CALLBACK_CONFIRMATION
valueFrom:
secretKeyRef:
name: belki-vk
key: VK_CALLBACK_CONFIRMATION
- name: BELKI_DATABASE_URL
valueFrom:
secretKeyRef:
name: belki-vk
key: BELKI_DATABASE_URL
ports:
- name: callback
containerPort: 8081
readinessProbe:
httpGet:
path: /health
port: callback
initialDelaySeconds: 3
periodSeconds: 10
livenessProbe:
httpGet:
path: /health
port: callback
initialDelaySeconds: 10
periodSeconds: 20
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 10001
---
apiVersion: v1
kind: Service
metadata:
name: belki-bot
namespace: belki
labels:
app.kubernetes.io/part-of: belki-calculator
spec:
type: ClusterIP
selector:
app.kubernetes.io/name: belki-bot
ports:
- name: callback
port: 8081
targetPort: callback
# app.yaml defines the app production resource; keep namespace and secret references aligned with belki.