iac/clusters/uralkal/kustomization.yaml
emelinda 338e98ad2f uralkal: export istio and app traces to S3 via opentelemetry-collector
- add opentelemetry-collector/uralkal overlay: otlp + zipkin receivers,
  awss3 exporter to the contour MinIO (10.133.0.245:9000, bucket "security-audit",
  prefix traces/, hourly partitions, gzip, otlp_proto), credentials from
  otel-collector-minio secret (same keys as security-audit-minio)
- harden per security-audit conventions: NetworkPolicy (ingest ports + MinIO
  egress only), PDB, pod anti-affinity, non-root, no sidecar (HTTP ServiceEntry
  on :9000 would shadow direct-IP egress to MinIO)
- istio-pilot/uralkal: enable mesh tracing (zipkin to otel-collector), sampling 100
- istio-config/uralkal: add-traceparent EnvoyFilter for all app namespaces
- clusters/uralkal: wire the collector overlay

Rollout order: apply the iac overlay first (creates the namespace), then
terragrunt apply in infra/terraform (branch contour, env uralkal) which rolls
regcred + otel-collector-minio + otel-collector-kafka secrets into the
opentelemetry-collector namespace and adds the traces/ lifecycle rule.
2026-11-08 18:23:55 +03:00

86 lines
2.5 KiB
YAML

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ./flux-system
- ./helm-repositories.yaml
- ../../infrastructure/vault/uralkal
- ../../infrastructure/istio-base/uralkal
- ../../infrastructure/istio-pilot/uralkal
- ../../infrastructure/istio-gateway/uralkal
- ../../infrastructure/rabbitmq/uralkal
- ../../infrastructure/kafka/uralkal
- ../../infrastructure/postgresql/uralkal
- ../../infrastructure/zitadel/uralkal
- ../../infrastructure/camunda/uralkal
- ../../infrastructure/superset/uralkal
- ../../infrastructure/trino/uralkal
- ../../infrastructure/istio-config/uralkal
- ../../infrastructure/s3-proxy/uralkal
- ../../infrastructure/opentelemetry-collector/uralkal
- ../../infrastructure/security-audit/uralkal
- ../../apps/reviews/uralkal
- ../../apps/remarks/uralkal
- ../../apps/auth-flow/uralkal
- ../../apps/control-interface/uralkal
- ../../apps/workspaces/uralkal
- ../../apps/eav/uralkal
- ../../apps/notes/uralkal
- ../../apps/rfi/uralkal
- ../../apps/checklists/uralkal
- ../../apps/contracts/uralkal
- ../../apps/django/uralkal
- ../../apps/documentations/uralkal
- ../../apps/processing/uralkal
- ../../apps/flows/uralkal
- ../../apps/issues/uralkal
- ../../apps/bim/uralkal
- ../../apps/attachments/uralkal
- ../../apps/bi/uralkal
- ../../apps/comparisons/uralkal
- ../../apps/drawings/uralkal
- ../../apps/inspections/uralkal
- ../../apps/mapper/uralkal
- ../../apps/measurements/uralkal
- ../../apps/subscriptions/uralkal
- ../../apps/system-log/uralkal
- ../../apps/transmittal/uralkal
- ../../apps/cross-section/uralkal
- ../../apps/document-link/uralkal
- ../../apps/prescriptions/uralkal
- ../../apps/projects/uralkal
- ../../apps/stamp-verification/uralkal
- ../../apps/faas/uralkal
- ../../apps/iam/uralkal
- ../../apps/pm/uralkal
- ../../apps/message-hub/uralkal
- ../../apps/cde/uralkal
patches:
- target:
kind: HelmRelease
patch: |
- op: add
path: /spec/driftDetection
value:
mode: enabled
ignore:
- paths: ["/webhooks"]
target:
kind: MutatingWebhookConfiguration
- paths: ["/webhooks"]
target:
kind: ValidatingWebhookConfiguration
- target:
kind: HelmRelease
name: istiod
patch: |
- op: add
path: /spec/driftDetection/ignore/-
value:
paths: ["/spec/replicas"]
target:
kind: Deployment