iac/infrastructure
emelinda f9874afb2b Istio: ждать готовности sidecar перед стартом приложения
Envoy перехватывает исходящий трафик через iptables-правила, которые
ставит init-контейнер istio-init. Правила появляются раньше, чем envoy
начинает слушать, поэтому приложение, дёрнувшее сеть в первые секунды,
получает не таймаут, а connection refused — пакет уже завёрнут на порт
envoy, а там ещё никого нет.

Так падал workflows-api: контейнер стартовал и умирал в ту же секунду,

  INFO  Starting workflows migrations
  INFO  init database connection...
  FATAL [dial tcp 10.43.195.4:5432: connect: connection refused]

при restartCount=0 у istio-proxy. Со второй попытки envoy успевал, и
дальше всё работало — то есть симптомом был ровно один рестарт на
старте, который легко списать на случайность.

Настройка сделана на уровне mesh, а не аннотацией на поде: уязвимы все,
кто ходит в БД или брокер сразу при запуске, а это почти каждый бэкенд
контура — django катит migrate первым делом, celery подключается к
rabbitmq, workspaces-api и engine-low к postgres. Они не падали не
потому, что устроены иначе, а потому что успевали.

Цена — каждый под стартует на время готовности envoy дольше, обычно
секунду-две: istio добавляет в sidecar postStart-хук, блокирующий запуск
остальных контейнеров. На Job'ы не влияет, у них инжекция отключена.

Действует в момент инжекции, поэтому на уже запущенные поды не
распространяется — хук появится при следующем пересоздании.
2026-08-09 11:27:34 +03:00
..
argo-events Add infra Argo and PostgreSQL contour releases 2026-06-11 11:15:04 +03:00
argo-workflows Add infra Argo and PostgreSQL contour releases 2026-06-11 11:15:04 +03:00
camunda fix identity.fullURL for ugmk: was falling back to chart default identity.camunda.sarex.io instead of camunda-identity.sarex-k8s.uralmine.com 2026-08-07 14:26:12 +03:00
cert-manager Merge remote-tracking branch 'origin/master' into aero 2026-08-09 09:15:00 +03:00
dashboard Merge remote-tracking branch 'origin/master' into aero 2026-08-09 09:15:00 +03:00
example-infra Initial setup of FluxCD v2 monorepo with Kustomize overlays and Helm releases 2026-04-07 11:11:00 +03:00
failed-pod-cleanup Bump failed-pod-cleanup chart version to 0.1.5 in brusnika-stage and base release. imagePullSecrets was added. 2026-06-10 11:49:09 +03:00
glitchtip Refactor yc-k8s-test infrastructure by splitting kustomization files into resource-specific directories. 2026-06-23 11:56:05 +03:00
goalert Add WB monitoring stack 2026-05-25 13:18:25 +03:00
istio-base feat(ansible): add private registry configuration for k3s and Flux with secure key handling 2026-08-03 15:40:07 +03:00
istio-config Merge remote-tracking branch 'origin/master' into aero 2026-08-09 09:15:00 +03:00
istio-gateway feat(fluxcd): add Istio gateway HelmRelease configuration with kustomize patching in aero environment 2026-08-03 16:08:12 +03:00
istio-pilot Istio: ждать готовности sidecar перед стартом приложения 2026-08-09 11:27:34 +03:00
kafka add kafka authorizer 2026-07-17 18:06:03 +03:00
kafka-exporter Add WB monitoring stack 2026-05-25 13:18:25 +03:00
keycloak Refactor yc-k8s-test infrastructure by splitting kustomization files into resource-specific directories. 2026-06-23 11:56:05 +03:00
local-path-provisioner feat(aero): PostgreSQL с четырьмя базами и ускоренный цикл реконсиляции 2026-08-08 11:33:43 +03:00
minio Measurements в контуре aero + декларативное заведение бакетов 2026-08-08 20:41:23 +03:00
openldap Refactor yc-k8s-test infrastructure by splitting kustomization files into resource-specific directories. 2026-06-23 11:56:05 +03:00
openobserve ++ fix openobserve otel secrets 2026-06-24 20:42:11 +03:00
opentelemetry-collector ++ add signoz otel compatibility service 2026-06-25 17:14:28 +03:00
opentelemetry-operator ++ disable otel prometheus feature gates 2026-06-24 15:58:22 +03:00
pg-sanitizer ++ bump pg-sanitizer image to infra_6622cc06 (fix circular fk prune) 2026-06-26 15:05:48 +03:00
postgres-exporter Add WB monitoring stack 2026-05-25 13:18:25 +03:00
postgresql feat(aero): PostgreSQL с четырьмя базами и ускоренный цикл реконсиляции 2026-08-08 11:33:43 +03:00
prometheus-stack Bump WB prometheus stack chart 2026-05-27 17:13:27 +03:00
rabbitmq RabbitMQ: снят loopback-only для администратора 2026-08-08 18:32:38 +03:00
redis Refactor yc-k8s-test infrastructure by splitting kustomization files into resource-specific directories. 2026-06-23 11:56:05 +03:00
s3-proxy restore buisness owned postgresql from company dumps 2026-06-29 18:45:57 +03:00
superset ++ fix superset remediation 2026-07-22 14:13:19 +03:00
trino add ss + trino to wb 2026-07-22 13:10:48 +03:00
vault Migrate Istio and Vault configurations to separate yc-ecp infrastructure directories with updated HelmRelease and Kustomization files. 2026-08-04 22:34:42 +03:00
vault-injector feat(aero): PostgreSQL с четырьмя базами и ускоренный цикл реконсиляции 2026-08-08 11:33:43 +03:00
vault-unseal Run Vault backups daily after 19 Moscow 2026-06-08 16:13:27 +03:00
vmstack Add WB monitoring stack 2026-05-25 13:18:25 +03:00
yc-pg-dumper Use yc pg dumper chart 0.1.5 2026-06-12 09:50:56 +03:00
zitadel ++ move ugmk infrastructure patches to overlays 2026-07-15 13:00:34 +03:00
kustomization.yaml Add failed-pod-cleanup HelmRelease and kustomization resources for brusnika-stage. 2026-06-09 17:16:37 +03:00