Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no configuration has been provided, try setting KUBERNETES_MASTER environment variable #354

Open
ns-rlewkowicz opened this issue May 16, 2024 · 5 comments
Assignees
Labels
area/simulator Issues or PRs related to the simulator. kind/bug Categorizes issue or PR as related to a bug.

Comments

@ns-rlewkowicz
Copy link

Master branch, kubeConfig is set, externalImportEnabled is set. Docker compose modified to have the configs in the right place. I get:

F0516 16:08:18.801668       1 simulator.go:26] failed with error on running simulator: get config:
    main.startSimulator
        /go/src/simulator/simulator.go:36
  - get kube clientconfig:
    sigs.k8s.io/kube-scheduler-simulator/simulator/config.NewConfig
        /go/src/simulator/config/config.go:81
  - get client config:
    sigs.k8s.io/kube-scheduler-simulator/simulator/config.GetKubeClientConfig
        /go/src/simulator/config/config.go:283
  - invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable

I can set the compose environment variable and override the kube config. I think it's trying to connect to the actual cluster though and I get a ton of odd errors.

@ns-rlewkowicz
Copy link
Author

Stand by, looks like possible large changes since last release

@ns-rlewkowicz
Copy link
Author

Same on older versions. I can't be the only one to have run into this. kube config is mounted at /kube.yaml and the config is configured to use it

@ns-rlewkowicz
Copy link
Author

if you mount the config to ~/.kube/config it works. I don't think the code ever looks at kubeConfig at a glance

@sanposhiho sanposhiho added kind/bug Categorizes issue or PR as related to a bug. area/simulator Issues or PRs related to the simulator. labels May 20, 2024
@sanposhiho
Copy link
Member

@ns-rlewkowicz Thanks for the report, will take a look.

/assign

@ThereWeGo
Copy link

it happend to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/simulator Issues or PRs related to the simulator. kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants