Goyoo / node-k8s-client

kubernetes client of node.js
MIT License
164 stars 59 forks source link

Cant connect to k8 #47

Closed Grigsuv closed 2 years ago

Grigsuv commented 6 years ago

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.