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

InCluster Auth Config Example #254

Closed
wethinkagile opened this issue Apr 23, 2018 · 3 comments
Closed

InCluster Auth Config Example #254

wethinkagile opened this issue Apr 23, 2018 · 3 comments

Comments

@wethinkagile
Copy link

wethinkagile commented Apr 23, 2018

Is InCluster Auth still working in Version 5 or do I need to provide a Kubeconfig file in my Cluster?

'use strict';

const Api = require('kubernetes-client');
const core = new Api.Core(Api.config.getInCluster());

module.exports.pods = async () => {
	return await core.namespaces('default').pods.get()
		.then(result => {
			return result;
		})
		.catch(err => {
			logger(err, this);
			console.info(err, this);
			return err;
		});
};
@silasbw
Copy link
Contributor

silasbw commented Apr 24, 2018

It should still work. What type of failure are you seeing?

@silasbw
Copy link
Contributor

silasbw commented May 1, 2018

I added an example: #259

@silasbw
Copy link
Contributor

silasbw commented May 1, 2018

Let us know if you continue to have issues.

@silasbw silasbw closed this as completed May 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants