Categories
python

How to speed up http calls in python? With Examples

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 […]

Categories
Kubernetes

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 […]

Categories
Kubernetes

How to connect to your remote kuberenetes cluster with kubectl from you local?

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: […]

Categories
Network Automation

Junos PyEZ how to fix the xmlSAX2Characters:huge text node

When trying to acquire a huge bit of config from juniper routers and parse it with PyEZ sometimes you get an error. Something like: pyez xmlSAX2Characters: huge text node, line 256071, column 53 (<string>, line 256071) PyEZ uses ncclient the python netconf client behind the scenes.It isn’t well documented in their docs though. Allowing a […]

Categories
Containerisation Containers Kubernetes

Kubernetes Questions – Please answer them

What is the Difference between a Persistent Volume and a Storage Class? What happens when pods are killed, is the data persisted – How do you test this? What is the difference between a Service and an Ingress? By default, Docker uses host-private networking, so containers can talk to other containers only if they are […]