You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: errname.js:18 execa/lib/errname: unable to establish process.binding('uv') Error: process.binding is not supported at Object.push../node_modules/process/browser.js.process.binding (browser.js:177)
at Object../node_modules/@kubernetes/client-node/node_modules/execa/lib/errname.js (errname.js:12)
at webpack_require (bootstrap:79)
at Object../node_modules/@kubernetes/client-node/node_modules/execa/index.js (index.js:11)
at webpack_require (bootstrap:79)
at Object../node_modules/@kubernetes/client-node/dist/config.js (config.js:4)
at webpack_require (bootstrap:79)
at Object../node_modules/@kubernetes/client-node/dist/index.js (index.js:4)
at webpack_require (bootstrap:79)
at new K8sClientService (k8s.service.ts:12)
My code (tried both import and require) k8s.service.ts:
import { Injectable } from '@angular/core';
//import * as k8s from '@kubernetes/client-node'
@Injectable({
providedIn: 'root'
})
export class K8sClientService {
public k8sApi;
Error:
errname.js:18 execa/lib/errname: unable to establish process.binding('uv') Error: process.binding is not supported at Object.push../node_modules/process/browser.js.process.binding (browser.js:177)
at Object../node_modules/@kubernetes/client-node/node_modules/execa/lib/errname.js (errname.js:12)
at webpack_require (bootstrap:79)
at Object../node_modules/@kubernetes/client-node/node_modules/execa/index.js (index.js:11)
at webpack_require (bootstrap:79)
at Object../node_modules/@kubernetes/client-node/dist/config.js (config.js:4)
at webpack_require (bootstrap:79)
at Object../node_modules/@kubernetes/client-node/dist/index.js (index.js:4)
at webpack_require (bootstrap:79)
at new K8sClientService (k8s.service.ts:12)
My code (tried both import and require) k8s.service.ts:
import { Injectable } from '@angular/core';
//import * as k8s from '@kubernetes/client-node'
@Injectable({
providedIn: 'root'
})
export class K8sClientService {
public k8sApi;
constructor() {
const k8s = require('@kubernetes/client-node');
const kc = new k8s.KubeConfig();
kc.loadFromDefault()
this.k8sApi = kc.makeApiClient(k8s.CoreV1Api);
}
}
The text was updated successfully, but these errors were encountered: