Files
cozystack/packages/system/cozystack-api/values.yaml
T
Timofei Larkin 952e05836d fix(cozystack-api): stop serving sdn.cozystack.io when serveSDN is off
serveSDN=false removed only the sdn APIService. The binary still
installed the group, so its /openapi/v3 index kept listing
apis/sdn.cozystack.io/v1alpha1 beside the server that owns the group
(cozyplane-apiserver in the cozyplane variant). kube-aggregator merges
every APIService backend's index and serves a group-version from
whichever backend it meets first in map order, so the index hash and the
spec request often land on different backends. The backend answers the
stale hash with a 301, the aggregator refuses to forward it, and
`kubectl explain` fails for every kind in the group with "the backend
attempted to redirect this request, which is not permitted"; when the
two do match, kubectl gets cozystack-api's SecurityGroup-only spec and
reports the other kinds as missing.

The chart now passes --serve-sdn=false with serveSDN off, and the
server then leaves the group uninstalled.

Assisted-by: LLM
Signed-off-by: Timofei Larkin <lllamnyp@gmail.com>
2026-11-19 12:04:16 +01:00

17 lines
874 B
YAML

# Injected by the platform from the cozystack-values Secret. The empty
# default keeps the chart renderable on its own, outside a cluster.
_cluster: {}
cozystackAPI:
image: ghcr.io/cozystack/cozystack/cozystack-api:v1.6.0@sha256:c4d374a9bc5e6f6e66d24b29396f1eae9d7f06fd268ff767d05c45ca35e84e2e
replicas: 2
# Empty by default: no resources block is rendered, so requests and limits are
# opt-in. Idle usage (measured) is ~130-143Mi — keep a limit above that.
resources: {}
# Serve and aggregate the sdn.cozystack.io group (Cozystack-native
# SecurityGroup over CiliumNetworkPolicy) through cozystack-api. The platform
# bundle turns this off for the cozyplane networking variant, where cozyplane
# owns the group; off drops both the APIService and the group itself
# (--serve-sdn=false), so cozystack-api stops publishing its OpenAPI.
serveSDN: true