Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document the different ways the PolicyServer CRD can be useful #323

Open
viccuad opened this issue Dec 11, 2023 · 1 comment
Open

Document the different ways the PolicyServer CRD can be useful #323

viccuad opened this issue Dec 11, 2023 · 1 comment
Labels
area/documentation Improvements or additions to documentation

Comments

@viccuad
Copy link
Member

viccuad commented Dec 11, 2023

There are several reasons one may want separate PolicyServers instead of only the default one. Most of the times one doesn't need to think about them, but they may be useful for specific personas:

  • You might have a set of policies that are critical, and want to run them with more redundancy/more CPU/memory resources.
  • You might want to isolate a noisy tenant from the other ones of the cluster. You could schedule a Policy Server to host the policies that belong to this tenant
  • You might want to schedule special policies (like our alpha kyverno policy) over this server. So that iterating over different configuration doesn't slow down the deployment of a Policy Server that hosts more stable and critical policies
  • You can also allow tenants to self-service by instantiating their own PolicyServers and policies
  • When dealing with context aware policies (the ones that read kubernetes information to take decisions), you could have Policy Servers running with ad-hoc Service Account. For example, if you need a policy to be able to read secrets across the whole cluster, you could create a ServiceAccount with this RBAC permission, then allocate a dedicated Policy Server using this ServiceAccount and, finally, deploy that context-aware policy over there

Acceptance criteria

Add these to the docs. For example under how-to's -> operator manual -> Configuring PolicyServers or Explanations -> PolicyServers.

@jhkrug jhkrug added the area/documentation Improvements or additions to documentation label Dec 11, 2023
@jhkrug
Copy link
Contributor

jhkrug commented Dec 11, 2023

I suggest both places. In Explanations for a high level view (to answer the question as it appeared in the Slack thread (Why would I want 2 or more Policy Servers?)). And an example in How-tos with detail of how to implement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/documentation Improvements or additions to documentation
Projects
Status: No status
Development

No branches or pull requests

2 participants