cozystack/packages/system/cozystack-api/templates
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
..
api-ingress.yaml refactor: replace Helm lookup with valuesFrom mechanism 2026-01-05 16:10:55 +01:00
apiservice.yaml [api,lineage] Ensure node-local traffic 2025-10-29 09:17:27 +03:00
auth-delegator.yaml Introduce Cozystack API (#460) 2024-11-04 17:33:34 +01:00
auth-reader.yaml Introduce Cozystack API (#460) 2024-11-04 17:33:34 +01:00
certmanager.yaml [api,lineage] Ensure node-local traffic 2025-10-29 09:17:27 +03:00
deployment.yaml [platform] Switch cozystack-api from DaemonSet to Deployment with PreferClose 2026-02-12 17:18:14 +01:00
hook.yaml [platform] Switch cozystack-api from DaemonSet to Deployment with PreferClose 2026-02-12 17:18:14 +01:00
rbac-bind.yaml Introduce Cozystack API (#460) 2024-11-04 17:33:34 +01:00
rbac.yaml [api] Use shared informer cache 2025-10-27 16:21:23 +03:00
sa.yaml Introduce Cozystack API (#460) 2024-11-04 17:33:34 +01:00
service.yaml [platform] Switch cozystack-api from DaemonSet to Deployment with PreferClose 2026-02-12 17:18:14 +01:00
tenantnamespaces-rbac.yaml [cozystack-api] Implement TenantNamespace, TenantModules, TenantSecret and TenantSecretsTable resources 2025-09-24 18:27:54 +02:00