Skip to content

bug: kflex init crashes #696

Description

@MikeSpreitzer

Describe the bug

With kflex release 0.9.3 installed via homebrew, kflex init --create-kind eventually fails with the following complaint.

Error: error installing chart: error downloading the OCI chart oci://ghcr.io/kubestellar/kubeflex/chart/kubeflex-operator:9 : ghcr.io/kubestellar/kubeflex/chart/kubeflex-operator:9: not found

Steps To Reproduce

  1. When there is no kind cluster named kubeflex, issue the command kflex init --create-kind

Expected Behavior

Successful creation of a kubeflex hosting cluster.

Additional Context

Here is a log demonstrating the problem.

mspreitz@mjs13 ~ % mkdir testkf

mspreitz@mjs13 ~ % cd testkf

mspreitz@mjs13 testkf % kind get clusters
No kind clusters found.

mspreitz@mjs13 testkf % which kflex
/opt/homebrew/bin/kflex

mspreitz@mjs13 testkf % kflex version
WARNING: current kflex version introduces BREAKING CHANGES related to kflex and your kubeconfig file which may interrupt kflex to function properly.
See https://github.com/kubestellar/kubeflex/blob/main/docs/users.md
Kubeflex version: v0.9.3.518e21f 2026-01-13T05:03:25Z
Could not connect to a Kubernetes cluster: error building kubeconfig: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable

mspreitz@mjs13 testkf % kflex init --create-kind
WARNING: current kflex version introduces BREAKING CHANGES related to kflex and your kubeconfig file which may interrupt kflex to function properly.
See https://github.com/kubestellar/kubeflex/blob/main/docs/users.md
✔ Checking if OpenShift cluster...
✔ Checking if kind is installed...
✔ Creating kind cluster...ind instance already exists...
✔ Checking if a kubeflex kind instance already exists...
Creating cluster "kind-kubeflex" ...
 ✓ Ensuring node image (kindest/node:v1.35.0) 🖼
 ✓ Preparing nodes 📦  
 ✓ Writing configuration 📜 
 ✓ Starting control-plane 🕹️ 
 ✓ Installing CNI 🔌 
 ✓ Installing StorageClass 💾 
Set kubectl context to "kind-kind-kubeflex"
You can now use your cluster with:

kubectl cluster-info --context kind-kind-kubeflex

Have a nice day! 👋
◒ Installing and patching nginx ingress...namespace/ingress-nginx created
serviceaccount/ingress-nginx created
serviceaccount/ingress-nginx-admission created
role.rbac.authorization.k8s.io/ingress-nginx created
role.rbac.authorization.k8s.io/ingress-nginx-admission created
clusterrole.rbac.authorization.k8s.io/ingress-nginx created
clusterrole.rbac.authorization.k8s.io/ingress-nginx-admission created
rolebinding.rbac.authorization.k8s.io/ingress-nginx created
rolebinding.rbac.authorization.k8s.io/ingress-nginx-admission created
clusterrolebinding.rbac.authorization.k8s.io/ingress-nginx created
clusterrolebinding.rbac.authorization.k8s.io/ingress-nginx-admission created
configmap/ingress-nginx-controller created
service/ingress-nginx-controller created
service/ingress-nginx-controller-admission created
deployment.apps/ingress-nginx-controller created
job.batch/ingress-nginx-admission-create created
job.batch/ingress-nginx-admission-patch created
ingressclass.networking.k8s.io/nginx created
validatingwebhookconfiguration.admissionregistration.k8s.io/ingress-nginx-admission created
◐ Installing and patching nginx ingress...deployment.apps/ingress-nginx-controller patched
✔ Installing and patching nginx ingress...
✔ Kubeflex v0.9.3.518e21f 2026-01-13T05:03:25Z
✔ Setting hosting cluster preference in kubeconfig
✔ Ensuring kubeflex-system namespace...
✔ Installing shared backend DB...
✔ Waiting for shared backend DB to become ready...
◑ Installing kubeflex operator...Error: error installing chart: error downloading the OCI chart oci://ghcr.io/kubestellar/kubeflex/chart/kubeflex-operator:9 : ghcr.io/kubestellar/kubeflex/chart/kubeflex-operator:9: not found
Usage:
  kflex init [cluster-name] [flags]

Flags:
  -c, --create-kind                  Create and configure a kind cluster for installing Kubeflex
  -d, --domain string                domain for FQDN (default "localtest.me")
  -p, --external-port int            external port used by ingress (default 9443)
  -h, --help                         help for init
  -n, --host-container-name string   Name of the hosting cluster container (kind or k3d only) (default "kubeflex-control-plane")

Global Flags:
  -s, --chatty-status       chatty status indicator (default true)
  -k, --kubeconfig string   path to the kubeconfig file for the KubeFlex hosting cluster. If not specified, and $KUBECONFIG is set, it uses the value in $KUBECONFIG, otherwise it falls back to ${HOME}/.kube/config (default "/Users/mspreitz/.kube/config")
  -v, --verbosity int       log level

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions