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

Categories
Containerisation Docker

Docker Saving 361MB on an Image File with dockerignore

Initially I created a Dockerfile to run my django app. I chose python alpine to save on image size. There were a few issues with that but that is fixed in the below Dockerfile FROM python:3.8-alpine RUN mkdir -p /code/requirements WORKDIR /code RUN pip install –upgrade pip –no-cache-dir # Installing requirements.txt from project COPY ./requirements/*.txt […]

Categories
Uncategorized

Insight into how Cloud Based Companies build their Products

There was a nice article on digital ocean about technical debt. The meat of the article included inisight into the architecture and workings of a cloud based vendor. You can read the article about the 15000 db connections to 100 on digitalocean’s blog The architecture looked like the image below in the end: