Skip to content

Commit f88b5fc

Browse files
authored
Merge pull request #40841 from cartermckinnon/patch-1
Correct ECR credential provider example
2 parents fc0235d + 28cb031 commit f88b5fc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

content/en/docs/tasks/administer-cluster/kubelet-credential-provider.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ In order to use this feature, the kubelet expects two flags to be set:
5454

5555
The configuration file passed into `--image-credential-provider-config` is read by the kubelet to determine which exec plugins
5656
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):
5858

5959
```yaml
6060
apiVersion: kubelet.config.k8s.io/v1
@@ -68,7 +68,7 @@ providers:
6868
# name is the required name of the credential provider. It must match the name of the
6969
# provider executable as seen by the kubelet. The executable must be in the kubelet's
7070
# bin directory (set by the --image-credential-provider-bin-dir flag).
71-
- name: ecr
71+
- name: ecr-credential-provider
7272
# matchImages is a required list of strings used to match against images in order to
7373
# determine if this provider should be invoked. If one of the strings matches the
7474
# requested image from the kubelet, the plugin will be invoked and given a chance
@@ -94,7 +94,7 @@ providers:
9494
# - registry.io:8080/path
9595
matchImages:
9696
- "*.dkr.ecr.*.amazonaws.com"
97-
- "*.dkr.ecr.*.amazonaws.cn"
97+
- "*.dkr.ecr.*.amazonaws.com.cn"
9898
- "*.dkr.ecr-fips.*.amazonaws.com"
9999
- "*.dkr.ecr.us-iso-east-1.c2s.ic.gov"
100100
- "*.dkr.ecr.us-isob-east-1.sc2s.sgov.gov"
@@ -107,8 +107,8 @@ providers:
107107
apiVersion: credentialprovider.kubelet.k8s.io/v1
108108
# Arguments to pass to the command when executing it.
109109
# +optional
110-
args:
111-
- get-credentials
110+
# args:
111+
# - --example-argument
112112
# Env defines additional environment variables to expose to the process. These
113113
# are unioned with the host's environment, as well as variables client-go uses
114114
# to pass argument to the plugin.

0 commit comments

Comments
 (0)