<#7334 fix(devbox-bundled): drop leftover istio re...
# flyte-github
a
#7334 fix(devbox-bundled): drop leftover istio refs so k3s applies the knative manifest Pull request opened by pingsutw Why are the changes needed? Starting the bundled devbox hangs at "Waiting for flyte cluster to be ready" and k3s logs an apply error that repeats forever:
Copy code
Failed to process config: failed to process /var/lib/rancher/k3s/server/manifests/flyte.yaml:
failed to create istio-system/knative-local-gateway /v1, Kind=Service for kube-system/flyte:
namespaces "istio-system" not found
The bundled Knative install ships with upstream net-istio defaults that don't belong in this devbox, which uses kourier for ingress and never creates the
istio-system
namespace (and the istio CRDs aren't installed): •
Service knative-local-gateway
in
istio-system
→ namespace missing. • Two
networking.istio.io/v1beta1 Gateway
CRs (
knative-ingress-gateway
,
knative-local-gateway
) → istio CRD missing. • Two
security.istio.io/v1beta1 PeerAuthentication
CRs (
net-istio-webhook
,
webhook
) → istio CRD missing. •
config-istio
ConfigMap points the local gateway at istio rather than kourier. k3s applies an addon manifest atomically, so a single un-appliable resource fails the entire
flyte.yaml
addon. k3s retries every ~20s and never succeeds, so the cluster never reports ready and
flyte start devbox
hangs. What changes were proposed in this pull request? In
kustomize/{complete,dev}/kustomization.yaml
, add patches that: 1. Repoint `config-istio`'s
local-gateway.knative-serving.knative-local-gateway
from
knative-local-gateway.istio-system.svc.cluster.local
→
kourier-internal.kourier-system.svc.cluster.local
. 2. Delete the
Service knative-local-gateway
in
istio-system
. 3. Delete
Gateway knative-local-gateway
in
knative-serving
(istio CRD). 4. Delete
Gateway knative-ingress-gateway
in
knative-serving
(istio CRD). 5. Delete
PeerAuthentication net-istio-webhook
in
knative-serving
(istio CRD). 6. Delete
PeerAuthentication webhook
in
knative-serving
(istio CRD). Regenerate
manifests/complete.yaml
and
manifests/dev.yaml
so the rendered output matches.
Note: items 5–6 (the
PeerAuthentication
CRs) are newer than the original PR — the bundled knative chart added them since, and they fail to apply for the same reason. They were left out before, so the addon still failed; this revision deletes them too.
How was this patch tested? • Regenerated both manifests and verified the rendered output has zero references to
istio-system
,
networking.istio.io
,
security.istio.io
/
PeerAuthentication
, and that
config-istio
now points at
kourier-internal
. • On a running devbox, stripping the same istio resources from the in-container
flyte.yaml
made the addon apply cleanly (
AppliedManifest
) and all
flyte
pods reached `Running`; the
namespaces "istio-system" not found
/
the server could not find the requested resource
errors no longer recur. Knative cluster-local routing through kourier still works. Labels fixed Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. flyteorg/flyte