init: learning-service skeleton
Микросервис обучения портала: тесты, курсы, видео-уроки, доступы, public-ссылки для кандидатов с email-валидацией. В этой итерации: - Skeleton (config, migrate, main, health) по паттерну tasks/candidates - Migration 001_init: 10 таблиц (tests/questions/answers/attempts/ attempt_answers + courses/lessons/lesson_progress + access_grants + public_tokens) с подробными комментариями why - Tests: полный CRUD + вопросы/ответы; non-owner'у is_correct и explanation скрываются в выдаче - Заглушки 501 для attempts / courses / lessons / video-stream / access / public-tokens — следующие итерации - k8s: namespace, configmap, secrets, postgres, deployment с HPA, service с portal-discovery annotations - Dockerfile, Makefile, .gitignore См. README.md для полного списка отложенного и инструкций запуска. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
18
k8s/server-service.yaml
Normal file
18
k8s/server-service.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: learning-server
|
||||
namespace: learning
|
||||
annotations:
|
||||
portal.estateliga.work/enabled: "true"
|
||||
portal.estateliga.work/name: "Обучение"
|
||||
portal.estateliga.work/description: "Тесты, курсы, видео-уроки, аттестация"
|
||||
portal.estateliga.work/icon: "book"
|
||||
portal.estateliga.work/path: "/api/learning"
|
||||
portal.estateliga.work/code: "learning"
|
||||
spec:
|
||||
selector:
|
||||
app: learning-server
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 3001
|
||||
Reference in New Issue
Block a user