Skip to content

[Bug] KubeKey fails to deploy Kubernetes cluster without CNI and default Storage Class (Open-Local) #2943

@moeinshahcheraghi

Description

@moeinshahcheraghi

What is version of KubeKey has the issue?

4.0.0

What is your os environment?

ubuntu 2404

KubeKey config file

# cluster.yaml (config.yaml)
apiVersion: kubekey.kubesphere.io/v1
kind: Config
spec:
  download:
    zone: ""
  kubernetes:
    kube_version: v1.33.0
    helm_version: v3.18.5
    control_plane_endpoint:
      address: "192.168.40.24"
      port: 6443
      kube_vip:
        mode: ARP
    cni:
      type: none # Explicitly set CNI to none
      ipv6_support: false
  etcd:
    etcd_version: v3.5.11
  image_registry:
    keepalived_version: 2.0.20
    harbor_version: v2.10.1
    dockercompose_version: v2.20.3
    docker_registry_version: 2.8.3
  cri:
    container_manager: containerd
    sandbox_image:
      tag: "3.9"
    crictl_version: v1.33.0
    docker_version: 24.0.7
    cridockerd_version: v0.3.1
    containerd_version: v1.7.6
    runc_version: v1.1.7
  network:
    pod_cidr: 10.233.64.0/18
    service_cidr: 10.233.0.0/18
  addons: 
    open_local:
      enable: false

A clear and concise description of what happend.

I am trying to deploy a Kubernetes cluster using KubeKey with a specific configuration:

  1. No CNI: I want to install Cilium manually after the cluster is set up, so KubeKey should not install any CNI (like Calico). I've set cni.type: none in my Config file.
  2. No default Storage Class: I do not want KubeKey to install any default storage provider (like Open-Local/OpenEBS). I've tried setting addons.open_local.enable: false and also removing storage_class section.

Despite trying various configurations and troubleshooting steps, KubeKey consistently fails to parse the configuration file or still deploys unwanted components.

Relevant log output

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions