lang(edu): translate k8s manifest comments to English only

- restore-seed-job.yaml.example: translate runbook to English
- secrets.yaml.example: translate section headers to English
- webinar-checker.yaml: translate initContainer dependency-order comments to English

Co-authored-by: assistant
This commit is contained in:
2026-09-09 10:46:22 +02:00
parent 9633fe3a10
commit 4c59a2d2fe
3 changed files with 14 additions and 10 deletions
+5 -5
View File
@@ -1,17 +1,17 @@
# Разовый Job для переноса состояния redis из docker compose в k8s (maintenance window). # One-time Job to migrate redis state from docker compose to k8s (maintenance window).
# Файл .example -> deploy-пайплайн его не применяет (маска *.example.yaml). # The .example file is not applied by the deploy pipeline (mask *.example.yaml).
# #
# Runbook: # Runbook:
# 1. docker compose -f <repo>/edu_master/compose.yaml stop # SIGTERM -> redis сбросит dump.rdb # 1. docker compose -f <repo>/edu_master/compose.yaml stop # SIGTERM -> redis will flush dump.rdb
# 2. docker run --rm -v edu_master_redis-data:/data \ # 2. docker run --rm -v edu_master_redis-data:/data \
# -v /tmp/edu-master-backup:/backup \ # -v /tmp/edu-master-backup:/backup \
# redis:alpine sh -c "cp /data/dump.rdb /backup/ && ls -la /backup" # redis:alpine sh -c "cp /data/dump.rdb /backup/ && ls -la /backup"
# 3. kubectl apply -f edu_master/k8s/namespace.yaml # 3. kubectl apply -f edu_master/k8s/namespace.yaml
# 4. kubectl apply -f <только PVC из redis.yaml> # seed строго ДО старта redis-пода # 4. kubectl apply -f <only the PVC from redis.yaml> # seed must come BEFORE redis pod starts
# 5. kubectl apply -f edu_master/k8s/restore-seed-job.yaml.example # 5. kubectl apply -f edu_master/k8s/restore-seed-job.yaml.example
# kubectl wait --for=condition=complete job/redis-restore-seed -n edu-master --timeout=120s # kubectl wait --for=condition=complete job/redis-restore-seed -n edu-master --timeout=120s
# 6. kubectl delete job redis-restore-seed -n edu-master # 6. kubectl delete job redis-restore-seed -n edu-master
# 7. kubectl apply -f edu_master/k8s/ -R # остальные манифесты # 7. kubectl apply -f edu_master/k8s/ -R # apply remaining manifests
apiVersion: batch/v1 apiVersion: batch/v1
kind: Job kind: Job
metadata: metadata:
+2 -1
View File
@@ -5,7 +5,7 @@ metadata:
namespace: edu-master namespace: edu-master
type: Opaque type: Opaque
stringData: stringData:
# PHPSESSID keeper # Session keeper credentials
KEEPER_LOGIN: "" KEEPER_LOGIN: ""
KEEPER_PASSWORD: "" KEEPER_PASSWORD: ""
KEEPER_INTERVAL: "10" KEEPER_INTERVAL: "10"
@@ -24,3 +24,4 @@ stringData:
# Database # Database
REDIS_HOST: "redis" REDIS_HOST: "redis"
REDIS_PORT: "6379" REDIS_PORT: "6379"
TZ: "Europe/Kyiv"
+5 -2
View File
@@ -15,9 +15,9 @@ spec:
labels: labels:
app: edu-master-webinar-checker app: edu-master-webinar-checker
spec: spec:
initContainers: # Enforces dependency order like compose depends_on:
# Держит порядок зависимостей как в compose depends_on:
# redis healthy -> session-keeper healthy (EXISTS EDU_PHPSESSID) -> playwright started # redis healthy -> session-keeper healthy (EXISTS EDU_PHPSESSID) -> playwright started
initContainers:
- name: wait-deps - name: wait-deps
image: redis:alpine image: redis:alpine
command: command:
@@ -50,6 +50,9 @@ spec:
envFrom: envFrom:
- secretRef: - secretRef:
name: edu-master-secrets name: edu-master-secrets
env:
- name: TZ
value: "Europe/Kyiv"
resources: resources:
requests: requests:
cpu: 25m cpu: 25m