question

TaB-8489 avatar image
0 Votes"
TaB-8489 asked TaB-8489 commented

Custom Azure policies in AKS?

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-serviceazure-policy
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @TaB-8489,

Did you get chance to review my earlier response? Let me know if you have any further queries regarding it.

0 Votes 0 ·

1 Answer

tbgangav-MSFT avatar image
0 Votes"
tbgangav-MSFT answered TaB-8489 commented

Hi @TaB-8489,

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



image.png (135.5 KiB)
image.png (124.4 KiB)
image.png (152.7 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@tbgangav-MSFT , Thank you for sharing the details. I have a small request. I have tried reading these articles but unable to understand the details. Can you share one simple custom policy only for azure kubernetes and steps to create/upload & integrated it in azure and azure kubernetes.

I would be really grateful for your help and support. These articles are pretty difficult to understand for a start.

Thank you. Take care.

0 Votes 0 ·