See service deployment creation/deletion history in AKS

Prusty, Jatin Nath 1 Reputation point

One of my AKS deployments is getting deleted everynight and it could be due to one of our devops scripts being wrongly setup. To debug further I need to check when the deployments are getting created/deleted. So far, I haven't been able to tarce any history for deployments. What would be a good way to find that?

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,333 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 13,847 Reputation points Microsoft Employee

    Hi @Prusty, Jatin Nath

    Container insights includes the Live Data feature, which is an advanced diagnostic feature allowing you direct access to your Azure Kubernetes Service (AKS) container logs (stdout/stderror), events, and pod metrics.
    You can view the live logs for pods, deployments, and replica sets with or without Container insights from the AKS resource view.
    You can also view real-time event data as they are generated by the container engine from the Nodes, Controllers, Containers, and Deployments view when a container, pod, node, ReplicaSet, DaemonSet, job, CronJob or Deployment is selected.
    You can find detailed steps to achieve the above in the document here.

    With Container insights, the view Deployments (preview) feature emulates direct access to Kubernetes Deployment objects in real time by exposing the kubeclt get deployments and kubectl describe deployment {your deployment} commands.
    Please refer to this document for more details on the same :

    Please try the options shared above and let me know if you have further questions.