Page MenuHomePhabricator

[k8s,infra] track PSP migration plan
Closed, ResolvedPublic

Related Objects

StatusSubtypeAssignedTask
In ProgressRaymond_Ndibe
ResolvedRaymond_Ndibe
ResolvedSlst2020
Resolvedaborrero
Resolvedaborrero
Resolvedaborrero
Resolvedaborrero
Resolvedaborrero
Resolvedaborrero
Resolvedaborrero
ResolvedAndrew
Duplicatedcaro
Resolvedaborrero
Resolvedaborrero
Resolvedaborrero
Resolvedaborrero
Declinedaborrero
Declinedaborrero
Declinedaborrero
Resolvedaborrero
Resolvedaborrero
Resolvedaborrero

Event Timeline

the plan could be this:

if we don't want to mutate existing workloads (!) by hand (script or something) we will need to carefully craft the kyverno policies so the templates produced in the PSP days are valid on kyverno's eyes.

aborrero changed the task status from Open to In Progress.May 6 2024, 12:50 PM
aborrero triaged this task as Medium priority.
aborrero moved this task from Backlog to Doing on the User-aborrero board.

Updated T362050: toolforge: review pod templates for PSP replacement to make sure our pod templates are updated accordingly.

Another point to consider: how to back-fill per-tool kyverno policies for existing tools.

aborrero renamed this task from toolforge: create a PSP migration plan to toolforge: track PSP migration plan.Jun 6 2024, 2:32 PM
aborrero updated the task description. (Show Details)

on the latest tests I've conducted, I detected that the kyverno mutation rule somehow clashes with the PSP mutations.

  • kyverno mutation rule adding hostIPC: false
  • then PSP removing it
  • then the kyverno validation rule requiring it being set
  • therefore kyverno validation failing

This temporal conflict between the Kyverno pod policy and PSP is something that needs to be carefully tested, and configured, for the cluster to be happy during the -hopefully brief- period in which the 2 mechanisms are alive together.

on the latest tests I've conducted, I detected that the kyverno mutation rule somehow clashes with the PSP mutations.

  • kyverno mutation rule adding hostIPC: false
  • then PSP removing it
  • then the kyverno validation rule requiring it being set
  • therefore kyverno validation failing

This temporal conflict between the Kyverno pod policy and PSP is something that needs to be carefully tested, and configured, for the cluster to be happy during the -hopefully brief- period in which the 2 mechanisms are alive together.

Making optional in the kyverno policy the fields that PSP is deleting works fine!

This should also be a valid solution when we drop PSP.

dcaro renamed this task from toolforge: track PSP migration plan to [k8s,infra] track PSP migration plan.Jun 13 2024, 9:47 AM
aborrero updated the task description. (Show Details)