Sometimes when calling a service on kong you might get a response like this HTTP/1.1 503 Service Temporarily Unavailable Connection: keep-alive Content-Length: 36 Content-Type: application/json; charset=utf-8 Date: Thu, 02 Apr 2020 09:28:06 GMT Server: kong/2.0.1 X-Kong-Response-Latency: 12 { “message”: “name resolution failed” } What does it mean? Kong cannot access the upstream. Make sure the […]
Recently I was tasked with removing a few attached storage profiles from a number of VDC’s in vCloud Director. The task would have been a long and arduous manual task. Fortunately vCloud Director has a REST API (A flippen good one). The reason I say it is good is that it makes proper used of […]
Blocking HTTP requests The most popular and easy to use blocking http client for python is requests. The requests docs are simple and straight forward…for humans. The biggest performance gain you can acquire (provided you are making requests to a single host) is using an http session. This creates a persistent connection, meaning that additional […]
A Journey of Troubleshooting K8s
We have a k8s cluster setup but noticed that a few of our pods were in Error, Terminating or ContainerCreating states. How do we figure out what caused these error and how to we correct the errors to make sure our status is Running. We are running this on k8s version 1.17 $ kubectl version […]
You’ve just set up your kubernetes cluster. Excellent, now you want to start deploying your specs…but they are on a repo on your local machine. All good let’s setup your kubeconfig file so you can connect to your k8s api with kubectl. Log into your server Create a service account spec: kind: ServiceAccount metadata: name: […]