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
On receiving credentials from the Kubelet, the plugin can also indicate how long credentials can be cached for, to prevent unecessary
49
-
execution of the plugin by the Kubelet for subsequent image pull requests to the same registry. In cases where the cache duration
49
+
On receiving credentials from the kubelet, the plugin can also indicate how long credentials can be cached for, to prevent unnecessary
50
+
execution of the plugin by the kubelet for subsequent image pull requests to the same registry. In cases where the cache duration
50
51
is not specified by the plugin, a default cache duration can be specified by the kubelet (more details below).
51
52
52
53
```json
@@ -56,8 +57,8 @@ is not specified by the plugin, a default cache duration can be specified by the
56
57
"auth": {
57
58
"cacheDuration": "6h",
58
59
"private-registry.io/my-app": {
59
-
"username": "“user”",
60
-
"password": "“token12345”"
60
+
"username": "exampleuser",
61
+
"password": "token12345"
61
62
}
62
63
}
63
64
}
@@ -66,9 +67,9 @@ is not specified by the plugin, a default cache duration can be specified by the
66
67
In addition, the plugin can specify the scope in which cached credentials are valid for. This is specified through the `cacheKeyType` field
67
68
in `CredentialProviderResponse`. When the value is `Image`, the kubelet will only use cached credentials for future image pulls that exactly
68
69
match the image of the first request. When the value is `Registry`, the kubelet will use cached credentials for any subsequent image pulls
69
-
that originate from the same registry host, but using different paths (e.g.`gcr.io/foo/bar` and `gcr.io/bar/foo` refer to different images
70
-
from the same registry). And lastly, when the value is `Global`, the kubelet will use returned credentials for all images that match against
71
-
the plugin, including images that can map to different registry hosts (e.g. gcr.io vs k8s.gcr.io). The `cacheKeyType` field is required by plugin
70
+
destined for the same registry host but using different paths (for example,`gcr.io/foo/bar` and `gcr.io/bar/foo` refer to different images
71
+
from the same registry). Lastly, when the value is `Global`, the kubelet will use returned credentials for all images that match against
72
+
the plugin, including images that can map to different registry hosts (for example, gcr.io vs k8s.gcr.io). The `cacheKeyType` field is required by plugin
72
73
implementations.
73
74
74
75
```json
@@ -78,8 +79,8 @@ implementations.
78
79
"auth": {
79
80
"cacheKeyType": "Registry",
80
81
"private-registry.io/my-app": {
81
-
"username": "“user”",
82
-
"password": "“token12345”"
82
+
"username": "exampleuser",
83
+
"password": "token12345"
83
84
}
84
85
}
85
86
}
@@ -93,7 +94,7 @@ a local directory accessible by the kubelet on every node. Then you set two comm
93
94
*`--image-credential-provider-bin-dir`: the path to the directory where credential provider plugin binaries are located.
94
95
95
96
The configuration file passed into `--image-credential-provider-config` is read by the kubelet to determine which exec plugins should be invoked for a container image used by a Pod.
96
-
Note that the name of each "provider" must match the name of the binary located in the local directry specified in `--image-credential-provider-bin-dir`, otherwise the Kubelet
97
+
Note that the name of each _provider_ must match the name of the binary located in the local directory specified in `--image-credential-provider-bin-dir`, otherwise the kubelet
0 commit comments