Skip to content

error validating "kube-flannel.yml": error validating data: failed to download openapi: #2100

@eliassal

Description

@eliassal

After successful kubadm init, I downloaded from
https://github.com/flannel-io/flannel/releases/latest/download/kube-flannel.yml
when I run
kubectl apply -f kube-flannel.yml

I get

error: error validating "kube-flannel.yml": error validating data: failed to download openapi: Get "http://localhost:8080/openapi/v2?timeout=32s": dial tcp 127.0.0.1:8080: connect: connection refused; if you choose to ignore these errors, turn validation off with --validate=false

Expected Behavior

install this CNI

Your Environment

  • Flannel version: latest as indicated
  • Backend used (e.g. vxlan or udp): not sure
  • Etcd version:
  • Kubernetes version (if used): 1.30
  • Operating System and version: fedora 37

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions