Here is a Go operator based the on Kubebuilder framework; for those who can follow Kubebuilder too simple example and cannot follow the next too complex one.
Pod Security Policies are depreciated in Kubernetes 1.21 and will be removed in future versions of K8s (1.25) https://github.com/kubernetes/kubernetes/pull/97171
If you have come from — https://medium.com/kubernetes-tutorials/cluster-level-logging-in-kubernetes-with-fluentd-e59aa2b6093a and still not able to configure; here are the files that work (without security)
No Docker
Setup
Kubernetes -Services
Also an example of a Pod, Service and Ingress