File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
content/en/docs/concepts/extend-kubernetes/compute-storage-net Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -361,10 +361,28 @@ DaemonSet, `/var/lib/kubelet/pod-resources` must be mounted as a
361
361
{{< glossary_tooltip term_id="volume" >}} in the device monitoring agent's
362
362
[ PodSpec] (/docs/reference/generated/kubernetes-api/{{< param "version" >}}/#podspec-v1-core).
363
363
364
+ {{< note >}}
365
+
366
+ When accessing the ` /var/lib/kubelet/pod-resources/kubelet.sock ` from DaemonSet
367
+ or any other app deployed as a container on the host, which is mounting socket as
368
+ a volume, it is a good practice to mount directory ` /var/lib/kubelet/pod-resources/ `
369
+ instead of the ` /var/lib/kubelet/pod-resources/kubelet.sock ` . This will ensure
370
+ that after kubelet restart, container will be able to re-connect to this socket.
371
+
372
+ Container mounts are managed by inode referencing the socket or directory,
373
+ depending on what was mounted. When kubelet restarts, socket is deleted
374
+ and a new socket is created, while directory stays untouched.
375
+ So the original inode for the socket become unusable. Inode to directory
376
+ will continue working.
377
+
378
+ {{< /note >}}
379
+
364
380
Support for the ` PodResourcesLister service ` requires ` KubeletPodResources `
365
381
[ feature gate] ( /docs/reference/command-line-tools-reference/feature-gates/ ) to be enabled.
366
382
It is enabled by default starting with Kubernetes 1.15 and is v1 since Kubernetes 1.20.
367
383
384
+
385
+
368
386
### ` Get ` gRPC endpoint {#grpc-endpoint-get}
369
387
370
388
{{< feature-state state="alpha" for_k8s_version="v1.27" >}}
You can’t perform that action at this time.
0 commit comments