cozystack/packages/system/cozystack-api
Andrei Kvapil a628adeb35
[platform] Switch cozystack-api from DaemonSet to Deployment with PreferClose
Replace DaemonSet with direct host API access in favor of a regular
Deployment using Service trafficDistribution: PreferClose. This provides
prefer-local routing to the nearest cozystack-api pod with fallback
to remote pods when local one is unavailable.

- Replace DaemonSet/Deployment toggle with always-Deployment
- Replace internalTrafficPolicy: Local with trafficDistribution: PreferClose
- Remove KUBERNETES_SERVICE_HOST/PORT override (use default kubernetes service)
- Replace hard nodeSelector with soft nodeAffinity for control-plane nodes
- Simplify migration hook to always clean up DaemonSet if present

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
2026-02-12 17:18:14 +01:00
..
images/cozystack-api Update go modules 2025-12-23 19:45:47 +01:00
templates [platform] Switch cozystack-api from DaemonSet to Deployment with PreferClose 2026-02-12 17:18:14 +01:00
.gitignore [api] Fix representation of dynamic list kinds 2025-11-13 18:04:33 +03:00
Chart.yaml Introduce Cozystack API (#460) 2024-11-04 17:33:34 +01:00
cozystack-api-openssl.cnf [api] Fix representation of dynamic list kinds 2025-11-13 18:04:33 +03:00
Makefile refactor: move scripts to hack directory 2026-01-15 16:06:56 +01:00
values.yaml [platform] Switch cozystack-api from DaemonSet to Deployment with PreferClose 2026-02-12 17:18:14 +01:00