@@ -54,7 +54,7 @@ In order to use this feature, the kubelet expects two flags to be set:
54
54
55
55
The configuration file passed into ` --image-credential-provider-config ` is read by the kubelet to determine which exec plugins
56
56
should be invoked for which container images. Here's an example configuration file you may end up using if you are using the
57
- [ ECR] ( https://aws.amazon. com/ecr/ ) -based plugin :
57
+ [ ECR-based plugin ] ( https://github. com/kubernetes/cloud-provider-aws/tree/master/cmd/ecr-credential-provider ) :
58
58
59
59
``` yaml
60
60
apiVersion : kubelet.config.k8s.io/v1
@@ -68,7 +68,7 @@ providers:
68
68
# name is the required name of the credential provider. It must match the name of the
69
69
# provider executable as seen by the kubelet. The executable must be in the kubelet's
70
70
# bin directory (set by the --image-credential-provider-bin-dir flag).
71
- - name : ecr
71
+ - name : ecr-credential-provider
72
72
# matchImages is a required list of strings used to match against images in order to
73
73
# determine if this provider should be invoked. If one of the strings matches the
74
74
# requested image from the kubelet, the plugin will be invoked and given a chance
@@ -94,7 +94,7 @@ providers:
94
94
# - registry.io:8080/path
95
95
matchImages :
96
96
- " *.dkr.ecr.*.amazonaws.com"
97
- - " *.dkr.ecr.*.amazonaws.cn"
97
+ - " *.dkr.ecr.*.amazonaws.com. cn"
98
98
- " *.dkr.ecr-fips.*.amazonaws.com"
99
99
- " *.dkr.ecr.us-iso-east-1.c2s.ic.gov"
100
100
- " *.dkr.ecr.us-isob-east-1.sc2s.sgov.gov"
@@ -107,8 +107,8 @@ providers:
107
107
apiVersion : credentialprovider.kubelet.k8s.io/v1
108
108
# Arguments to pass to the command when executing it.
109
109
# +optional
110
- args :
111
- - get-credentials
110
+ # args:
111
+ # - --example-argument
112
112
# Env defines additional environment variables to expose to the process. These
113
113
# are unioned with the host's environment, as well as variables client-go uses
114
114
# to pass argument to the plugin.
0 commit comments