Skip to content

Instantly share code, notes, and snippets.

@frankpf
Last active July 12, 2018 16:05
Show Gist options
  • Save frankpf/c00674ab7fadbb6739558881584639b4 to your computer and use it in GitHub Desktop.
Save frankpf/c00674ab7fadbb6739558881584639b4 to your computer and use it in GitHub Desktop.

Dashboard issues

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/

Where is the simple-python-app repository?

https://github.com/afroisalreadyinu/kubernetes-repository

Exposing services to K8s

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}`)
})

Correct address for acessing simple-python-app

http://localhost:8001/api/v1/namespaces/default/pods/$POD_NAME/proxy

You can find out the pod name using kubectl get pods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment