deployments-k8s
deployments-k8s copied to clipboard
K8S PSS restricted profile support
Overview
This is a continuation of this issue - https://github.com/networkservicemesh/deployments-k8s/issues/9218
Current state: PSS has 3 profiles - Privileged, Baseline and Restricted.
- Privileged works, because it has no restrictions.
-
Baseline also works, since the main limitation is the use of
hostPath
, and this will be fixed by the NSM CSI driver -
Restricted - it has many limitations - https://kubernetes.io/docs/concepts/security/pod-security-standards/#restricted
We fixed one issue -
Livelinesschecker
now works in non-privileged mode. And that's enough for a basic example.
But we have other problems with restricted profile:
- Local DNS Server on the NSC. We have denied access to edit
/etc/resolv.conf
, as well as the use of the:53
port. - VL3 DNS probably has the same problems
- VPP applications also cannot be used, because
vpphelper
also needs rights (mkdir /etc/vpp/helper: permission denied
) (possible solution - comment) - other issues not yet found.
See: https://github.com/networkservicemesh/deployments-k8s/issues/9218#issuecomment-1598818058