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
121 Views Asked by Lemon Sky At
1
There are 1 best solutions below
Related Questions in KUBERNETES
- How to know a Pod's own IP address from inside a container in the Pod?
- Who will decide the "specified number of pods" for replication controller in kubernetes?
- Access other containers of a pod in Kubernetes
- Kubernetes cluster using Vagrant not working after restart
- kubectl not installed with gcloud SDK
- How do I access the Kubernetes api from within a pod container?
- Exposing several services with Vagrant and Kubernetes on my own server
- Does Kubernetes provision new VMs for pods on my cloud platform?
- Any suggestion for running Aerospike on Kubernetes on CoreOS on GCE?
- Kubernetes - kubectl exec bash - session drop and line width
- Google Container Engine (GKE): "Hello Wordpress" tutorial not working (ERR_CONNECTION_REFUSED)
- Kubernetes Pod Creation Speed
- How can i set max count of pods for replication-controller per node?
- Is there a way to tell kubernetes to update your containers?
- Postgres with Kubernetes and persistentDisk
Related Questions in SOCAT
- Use socat to connect to socket, send a command, and read a single line
- socat with a virtual tty link and fork removes my pty link
- Using SOCAT for serial communication to USB on Linux
- socat - how to listen on non-ssl TCP and forward to ssl TCP endpoint?
- `socat` does not always kill the child process
- Linux Virtual Serial Port for creating a device commuication
- Duplicate input unix stream to multiple TCP clients (using socat)
- socat: How to create a bidirectional IP tunnel through UDP
- (9600 N,8,1)--> Serial Port --> Network --> Serial Port -->(9600 N81)
- socat: log conversation with serial port
- Access /dev/tpm0 from Kubernetes pod without privileged mode
- socat: forward remote character device to local
- virtual socat serial port and c# on ubuntu linux
- Using socat to copy multicast from one network to another
- How return output in local machine from socat command linux
Related Questions in DOCKER-PRIVILEGED
- Access /dev/tpm0 from Kubernetes pod without privileged mode
- How to run docker container as privileged within Cloud Run
- How to access all physical host network interfaces from container?
- Docker 50% performance hit on cpu intensive code
- Is there a way to avoid login when using --privileged to run a docker container
- Docker engine api create container with privileged mode
- Install RPMs on the host from inside a kubernetes pod
- spark3.0 on kubernetes with privileged containers
- How to shutdown the host (ubuntu) inside a docker container
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 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.