Blue Green Deployments Job Submission

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version: 1.25
Cloud being used: Public Cloud
Installation method: Cloud Managed
Host OS:
CNI and version:
CRI and version:

I have a Kubernetes cluster running with 1.25 and have an application with Blue-Green Deployments on different clusters with the same namespace. In my application, one of the functionality is to submit a Kubernetes Kind “Job”.
My question is

  1. How do I get the information about the Job from which deployment the job triggered (Blue deployment or Green deployment)?

Appreciate the help.

check the job list by
kubectl get jobs -n namespace
kubectl describe job name_of_the_job -n namespace

That gives the information of the job when you contact the API server within the cluster. If the job is connected to some dashboard with the same User Interface for both Green and Blue then how the dashboard will come to know whether the job is triggered by Blue Deployment users or Green Deployment users.

@sai_krishna your right that give job information on that you can find out the Pod name if you have that pod name you can check that pod logs. I hope we can find some information on the pod logs.