Menu

Dipesh Majumdar

Blog and Paintings

Blog posts : "Kubernetes"

Lessons learnt from "mysql golang rest api project"

Recently I was working on a mysql golang rest api project and these are some of the issue…

Read more

activeDeadlineSeconds and backoffLimit

Lets create a job - 

apiVersion: batch/v1
kind: Job
metadata:
  creationTimestamp:…

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

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

    re…

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

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

Easiest way to write manifests

  • Pod

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

Read more

How to rollback a deployment in Kubernetes

$ kubectl -n mynamespace describe deploy nginx |grep -i image
    Image:        nginx:2.…

Read more

Define environment variable in a pod manifest

In the below example i am defining an environment variable "envVar1" and then checking it…

Read more

run bash commands with spaces on pod

You wanna run bash commands with spaces in a pod without entering the pod with the '-it' …

Read more

Error: configmaps is forbidden: User "system:serviceaccount:kube-system:default" cannot list configmaps in the namespace "kube-system": Unknown user "system:serviceaccount:kube-system:default"

confronted with this error while helming...

 

$ helm ls
Error: configmaps is forb…

Read more

no persistent volumes available for this claim and no storage class is set

that error is because storage class is properly not set...

one way of solving that is …

Read more

17 Blog Posts