Dipesh Majumdar

Blog and Paintings

Blog posts April 2019

activeDeadlineSeconds and backoffLimit

Lets create a job - 

apiVersion: batch/v1
kind: Job

Read more

Difference between service port and container port

service port is marked in yellow highlight below - 

k run  nginx --image nginx:1.7.7 …

Read more

To those who seek to be noticed...

Be so good in your craft that people are bound to notice you.  - Dipesh Majumdar

Read more

vi editor tips and tricks

  1. go to top of screen
  2. go to middle of file
  3. go to end of file
  4. start inserting just …

Read more

skeleton ingress to feed nginx ingress controller

The way it works is: 

nginx ingress controller has to be deployed in your nginx namespa…

Read more

Enabling K8s network policy during Cluster creation

While creating k8s cluster you need to enable this feature. 

Read more

Common Mistakes in declarative yaml manifests and imperative commands

Its a common mistake - you need to know yaml properly. so here i first did this


Read more

Sitting on a Jumpbox and testing with network policy

You want to sit on a jumpbox so you can wget to some clusterip:port for testing only....

Read more

Creating a pod and a matching service imperatively

[dipesh.majumdar@demo ~]$ k run nginx --restart=Never --image=nginx --dry-run --port=80  …

Read more

Volumes, Storageclasses, pvc

First of all, if you are creating a hostpath volume within a pod of type Dir and it looks…

Read more

Finding out Entrypoint, CMD, env of docker from the image

Million Dollar Question: You have an image - but you wan to find out the entry point from…

Read more

Monitoring K8s

- metrics server (heapster has been deprecated) - metrics server receives metrics from no…

Read more

Service Account Mystery

[dipesh.majumdar@demo ~]$ k -n mns get all
No resources found.

Though SA is present b…

Read more

Environment Variable in Docker

[dipesh.majumdar@demo ubunutu]$ cat Dockerfile
FROM ubuntu
#CMD sleep 5
#CMD ["sleep",…

Read more

ENTRYPOINT and CMD of docker corresponds to command and args in k8s

Consider the Dockerfile - 

FROM ubuntu
#CMD sleep 5
#CMD ["sleep","30"]

Read more

make docker run from users other than root

Sometimes even after installing docker from root correctly, it might not allow you to con…

Read more

Easiest way to write manifests

  • Pod

kubectl -n some_ns run pod_name --restart=Never --image=nginx:1.7.9 --d…

Read more

17 Blog Posts