You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For alpha `kubelet` will keep a list, since boot, of container images that required
136
-
authentication and a list of the authentications that successfully pulled the image.
137
-
For beta the list will be persisted across reboot of host, and restart of kubelet.
138
-
Additionally, an API will be considered to manage the ensure metadata.
134
+
For alpha `kubelet` will keep a list, across reboots of host and restart of
135
+
kubelet, of container images that required authentication and a list of the
136
+
authentications that successfully pulled the image.
137
+
For beta an API will be considered to manage the ensure metadata.
139
138
140
139
`kubelet` will ensure any image in the list is always pulled if an authentication
141
140
used is not present, thus enforcing authentication / re-authentication.
@@ -170,7 +169,7 @@ Since images can be pre-loaded, loaded outside the `kubelet` process, and
170
169
garbage collected.. the list of images that required authentication in `kubelet`
171
170
will not be a source of truth for how all images were pulled that are in the
172
171
container runtime cache. To mitigate, images can be garbage collected at boot.
173
-
And for beta, we will persist ensure metadata across reboot of host, and restart
172
+
And we will persist ensure metadata across reboot of host, and restart
174
173
of kubelet, and possibly look at a way to add ensure metadata for images loaded
175
174
outside of kubelet. In beta we will add a switch to enable re-auth on boot for
176
175
admins seeking that instead of having to garbage collect where they do not use
@@ -179,10 +178,27 @@ or expect preloaded images since boot.
179
178
180
179
## Design Details
181
180
182
-
Kubelet will track, in memory, a hash map for the credentials that were successfully used to pull an image. The hash map
183
-
will not be persisted to disk, in alpha. For alpha explicitly, we will not reuse or add other state manager concepts to kubelet.
181
+
Kubelet will track, in memory, a hash map for the credentials that were successfully used to pull an image. It has been decided that the hash map will be persisted to disk, in alpha.
184
182
185
-
See PR for detailed design / behavior documentation.
183
+
See `/var/lib/kubelet/image_manager_state` in [kubernetes/kubernetes#114847](https://github.com/kubernetes/kubernetes/pull/114847)
0 commit comments