cozystack/packages/core/installer
Myasnikov Daniil c0b76b168e
fix(installer): schedule cozy-system labeler hook on NotReady-NoSchedule nodes
The pre-install Job runs before any CNI is installed, so all nodes are
tainted NotReady-NoSchedule and the pod has no pod network. Without
adjustment the Job's pod sits Pending until helm's pre-install timeout
fires, blocking the entire install.

Surfaced in PR #2500 CI run 25040584552 attempt 2:
  FailedScheduling  0/3 nodes are available: 3 node(s) had untolerated
  taint {node.kubernetes.io/not-ready: }.

Mirror the cozystack-operator deployment's scheduling pattern:
- hostNetwork=true so the pod doesn't depend on CNI
- Tolerations matching the operator
  (not-ready / unreachable / cilium.agent-not-ready / cloudprovider.uninitialized)
- Variant-aware KUBERNETES_SERVICE_HOST/PORT env so kubectl reaches the
  apiserver before kube-proxy + CNI are up:
    talos:   localhost:7445   (KubePrism)
    generic: cozystack.apiServerHost / Port
    hosted:  default in-cluster

Verified on the sandbox kind cluster that the rendered Job manifest
schedules and the kubectl container starts (the kind cluster itself
doesn't run KubePrism so the env-var path can't be end-to-end-tested
there; the Talos E2E will exercise it).

Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-04-28 13:21:09 +05:00
..
example [cozystack-operator] Add deployment files 2025-12-29 14:04:10 +01:00
images/cozystack-operator refactor(telemetry): split telemetry between operator and controller 2026-01-19 13:52:15 +01:00
templates fix(installer): schedule cozy-system labeler hook on NotReady-NoSchedule nodes 2026-04-28 13:21:09 +05:00
.helmignore refactor(installer): move CRDs to crds/ directory for proper Helm install ordering 2026-02-18 00:49:55 +03:00
Chart.yaml Calculate tags and version automatically (#100) 2024-04-24 11:31:22 +02:00
Makefile fix(installer): add build revision marker to trigger platform reconciliation 2026-03-18 21:37:23 +05:00
values.yaml Prepare release v1.3.0 2026-04-22 07:28:09 +00:00