Custom Azure policies in AKS?

Tanul 1,251 Reputation points
2021-03-22T23:03:45.773+00:00

Team,

Can anyone share the document or video to create a custom azure policy for Azure Kubernetes.

For eg. I have a situation where I need to specify a common set of policy for one set of AD groups like this and for SRE AD group I want to setup other type of pod security policies.

Any suggestions please. Thank you.

Regards
Tanul

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,865 questions
Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
797 questions
{count} votes

1 answer

Sort by: Most helpful
  1. tbgangav-MSFT 10,386 Reputation points
    2021-03-23T02:20:55.57+00:00

    Hi @Tanul ,

    This is the official Azure document which helps to create a custom policy definition. Below screenshot-1 is a reference of the same Azure document in which the recommendation is to check policy samples if those match your needs. So, you may click on the policy samples link and check them once.

    Screenshot-1:
    80388-image.png

    Below are few other references of existing policies and Kubernetes:

    1. GitHub - Azure Policy samples
    2. GitHub - Community Policy samples
    3. Understand Azure Policy for Kubernetes clusters
    4. Secure your cluster with Azure Policy

    How did I find above provided references?
    Answer: In the same official Azure Policy documentation i.e.,

    80437-image.png

    80424-image.png