I am running a Kubernetes Pod for a service that needs to access the /dev/tpm0 device on the host. This works in privileged mode, however, I want to work unprivileged. Is there a way of establishing a proxy for /dev/tpm0 under a /anotherpath accessible to a specific user that is not root? Something like socat but for devices - or is it possible to configure /dev/tpm0 on the system to be accessible without privileged mode?
Access /dev/tpm0 from Kubernetes pod without privileged mode
123 Views Asked by Lemon Sky At
1
There are 1 best solutions below
Related Questions in KUBERNETES
- Golang == Error: OCI runtime create failed: unable to start container process: exec: "./bin": stat ./bin: no such file or directory: unknown
- I can't create a pod in minikube on windows
- Oracle setting up on k8s cluster using helm charts enterprise edition
- Retrieve the Dockerfile configuration from the Kubernetes and also change container Java parameter?
- Summarize pods not running, by Namespace and Reason - I'm having trouble finding the reason
- How to get Java running parameters from Spring Boot running inside container in pod where no ps exist
- How do we configure prometheus server to scrape metrics from a pod with Istio sidecar proxy?
- In rke kube-proxy pod is not present
- problem with edge server registration in Eureka
- Unable to Access Kubernetes LoadBalancer Service from Local Device Outside Cluster
- Kubernetes cluster on GCE connection refused error
- Based on my experience, I've outlined the Kubernetes request flow. Could someone please add or highlight any points I might have overlooked?
- how to define StackGres helm chart "restapi" values to use internal LoadBalancer - AWS EKS
- Python3.11 can't open file [Errno 2] No such file or directory
- Cannot find remote pod service - SERVICE_UNAVAILABLE
Related Questions in SOCAT
- docker socket over socat get write: broken pipe
- Docker container for proxying ports to other containers of the stack
- Is it possible to configure kubectl port-forward to not exit on connection refused?
- socat stops working to redirect UDP traffic after first successful packet?
- socat: forward remote character device to local
- Access /dev/tpm0 from Kubernetes pod without privileged mode
- Packet Capture and Retransmission, socat permission denied
- socat on a Debian 12 linux VM for port forwarding - How many concurrent connections can it handle?
- How to use socat for capturing unix domain socket packets sent by a specific process?
- socat with EXEC:script spawns 5 processes/sec
- How can I one-to-many stream with netcat or socat?
- OTA update service
- socat - Forward to two Ports?
- Creating a virtual serial device in linux programmatically
- Spark Streaming Connection Refused
Related Questions in DOCKER-PRIVILEGED
- Access /dev/tpm0 from Kubernetes pod without privileged mode
- Install RPMs on the host from inside a kubernetes pod
- Is there a way to avoid login when using --privileged to run a docker container
- How to access all physical host network interfaces from container?
- How to run docker container as privileged within Cloud Run
- How to shutdown the host (ubuntu) inside a docker container
- spark3.0 on kubernetes with privileged containers
- Docker engine api create container with privileged mode
- Docker 50% performance hit on cpu intensive code
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The privileged mode is required by Kubernetes to access devices. There seems to be no workaround.
To avoid custom containers to access the device directly, it is possible to use the device plugin at https://github.com/squat/generic-device-plugin
This plugin will now run in privileged mode under kube-system, however, all other containers can now run unprivileged.