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

Error: clusters[1].cluster.server is missing #7

Open
shortcircuit3 opened this issue Sep 10, 2019 · 8 comments
Open

Error: clusters[1].cluster.server is missing #7

shortcircuit3 opened this issue Sep 10, 2019 · 8 comments
Labels
question Further information is requested

Comments

@shortcircuit3
Copy link

➜  api git:(master) kubelive get pod
/Users/alexmiles/.nvm/versions/node/v8.11.1/lib/node_modules/kubelive/node_modules/@kubernetes/client-node/dist/config_types.js:18
            throw new Error(`clusters[${i}].cluster.server is missing`);
            ^

Error: clusters[1].cluster.server is missing
    at /Users/alexmiles/.nvm/versions/node/v8.11.1/lib/node_modules/kubelive/node_modules/@kubernetes/client-node/dist/config_types.js:18:19
    at Function._.map._.collect (/Users/alexmiles/.nvm/versions/node/v8.11.1/lib/node_modules/kubelive/node_modules/underscore/underscore.js:205:24)
    at Object.newClusters (/Users/alexmiles/.nvm/versions/node/v8.11.1/lib/node_modules/kubelive/node_modules/@kubernetes/client-node/dist/config_types.js:6:14)
    at KubeConfig.loadFromString (/Users/alexmiles/.nvm/versions/node/v8.11.1/lib/node_modules/kubelive/node_modules/@kubernetes/client-node/dist/config.js:94:40)
    at KubeConfig.loadFromFile (/Users/alexmiles/.nvm/versions/node/v8.11.1/lib/node_modules/kubelive/node_modules/@kubernetes/client-node/dist/config.js:65:14)
    at KubeConfig.loadFromDefault (/Users/alexmiles/.nvm/versions/node/v8.11.1/lib/node_modules/kubelive/node_modules/@kubernetes/client-node/dist/config.js:201:22)
    at Object.<anonymous> (/Users/alexmiles/.nvm/versions/node/v8.11.1/lib/node_modules/kubelive/kube/api.js:5:4)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)

Cool tool and excited to get it working!

@question-tagger question-tagger bot added the question Further information is requested label Sep 10, 2019
@question-tagger
Copy link

Hey! Thanks for the question someone will answer you soon.

@ameerthehacker
Copy link
Owner

hey @milesalex what version of node are you using? and is your context set properly using the kubectl tool and does the kubectl tool work properly?

@shortcircuit3
Copy link
Author

➜  api git:(master) node -v
v8.11.1

How do i see if context is set properly

@ameerthehacker
Copy link
Owner

please try upgrading your node version to 10 and check the context is set properly by

kubectl config get-context

If you see a list of names with * prefixed in anyone of it then it is fine

@shortcircuit3
Copy link
Author

Still getting error

➜  api git:(master) kubectl config current-context

this returns the context im currently in

@ameerthehacker
Copy link
Owner

@milesalex did you try upgrading node?

@ameerthehacker
Copy link
Owner

ameerthehacker commented Sep 11, 2019

can you please also share your kubeconfig (secrets removed)?

@aytuncbeken
Copy link

Having the same problem.
Nodejs version 10.15.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants