Skip to content

Failed to enable FluxCD due to invalid DNS name for vela-core-webhook service #763

Open
@gdm257

Description

@gdm257

Reproduction

> kubectl vela addon install fluxcd
Error: Internal error occurred: failed calling webhook "validating.core.oam.dev.v1beta1.applications": failed to call webhook: Post "https://vela-core-webhook.vela-system.svc:443/validating-core-oam-dev-v1beta1-applications?timeout=10s": context deadline exceeded
Error: exit status 1

Environment

KubeVela: 1.9.13
FluxCD Addon: 3.0.0
K8s: k3s v1.28
DNS: CoreDNS
CNI: cilium

Problem

vela-core-webhook.vela-system.svc is an invalid hostname. In my cluster(k3s), there should be a cluster.local suffix as vela-core-webhook.vela-system.svc.cluster.local

I create a temp Pod to test it.

/ > nslookup velaux-server.vela-system.svc
Server:         10.43.0.10
Address:        10.43.0.10:53

** server can't find velaux-server.vela-system.svc: NXDOMAIN

** server can't find velaux-server.vela-system.svc: NXDOMAIN

/ > nslookup vela-core-webhook.vela-system.svc.cluster.local
Server:         10.43.0.10
Address:        10.43.0.10:53

Name:   vela-core-webhook.vela-system.svc.cluster.local
Address: 10.43.111.182

However, there is no parameter to patch the URL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions