As part of the 1.8 release of Okteto we have added support for Kubernetes version 1.25.
Due to the removal of pod security policies, in Kubernetes, you will need to upgrade your Okteto version to 1.8 before upgrading your Kubernetes cluster to 1.25.
More information can be found in our upgrade documentation.