Closed martinkennelly closed 3 years ago
The daemonset can not run when set the securityContext.
# kubectl logs -f -nkube-system kube-sriov-cni-ds-amd64-g49n2
cp: can't create '/host/opt/cni/bin/sriov': Permission denied
It will run successfully after delete the securityContext
config.
I confused that why we set
securityContext:
allowPrivilegeEscalation: false
privileged: true
readOnlyRootFilesystem: true
when we need to copy binary file to host.
Signed-off-by: Martin Kennelly martin.kennelly@intel.com