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

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