Error: 'tls: oversized record received with length 20527'
Trying to reach: 'https://172.17.0.3:9090/'
Remove the https:
from the URL path. The link will become:
http://localhost:8001/api/v1/namespaces/kube-system/services/kubernetes-dashboard:/proxy/
https://github.com/afroisalreadyinu/kubernetes-repository
Services have to bind to some port on interface 0.0.0.0
.
In Node.js using Express.js:
const app = express()
const port = 8080
...
http.createServer(app).listen({
host: '0.0.0.0',
port,
}, function() {
console.log(`Express server listening on port ${port}`)
})
http://localhost:8001/api/v1/namespaces/default/pods/$POD_NAME/proxy
You can find out the pod name using kubectl get pods
.