I am using AKS (Azure k8),trying to connect to cluster, here is my code `
var K8s = require('k8s');var kubectl = K8s.kubectl({endpoint: My API server address, namespace: 'dev-op', binary: '/usr/local/bin/kubectl'
, auth: {"token": "token taken from kubectl config view "}})
getting error Unable to connect to the server: x509: certificate signed by unknown authority
What is problem and what can I do?
Sorry if simple issue I cant find more information.
I am using AKS (Azure k8),trying to connect to cluster, here is my code `
var K8s = require('k8s');
var kubectl = K8s.kubectl({
endpoint: My API server address
, namespace: 'dev-op'
, binary: '/usr/local/bin/kubectl
', auth: {
"token": "token taken from kubectl config view "
}
})
getting error
Unable to connect to the server: x509: certificate signed by unknown authority
What is problem and what can I do? Sorry if simple issue I cant find more information.