Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

troubleshooting: Local PV hostpath fails due to secure cluster policy #796

Open
kmova opened this issue May 4, 2020 · 1 comment
Open
Milestone

Comments

@kmova
Copy link
Contributor

kmova commented May 4, 2020

From the slack conversation:

an user reported that provisioning local pv hostpath volumes is throwing the following error:

' failed to provision volum ││ e with StorageClass "local-hostpath": Pod "init-pvc-86c9d288-262b-
4b34-b8d7-9299f868a749" is invalid: spec.containers[0].securityContext.privileged: Forbidden: 
disallowed  ││ by cluster policy

Solution/Workaround: User got this working by setting --allow-privileged=true on the kube-apiserver.

@kmova kmova added this to the 1.10 milestone May 4, 2020
@kmova
Copy link
Contributor Author

kmova commented May 8, 2020

The issue was seen on:
microk8s on ubuntu 18.04
k8s version: 1.18.2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant