Skip to content

Commit d3fbae4

Browse files
committed
chore: update readme for GKE clusters using GCR
gcloud installed on the image to allow users with clusters running on GKE to access GCR without without managing static credentials
1 parent 90cf79e commit d3fbae4

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,24 @@ The Snyk Integration ID is used in the `--from-literal=integrationId=` parameter
4343

4444
Create a file named `dockercfg.json`. Store your `dockercfg` in there; it should look like this:
4545

46-
```json
46+
```hjson
4747
{
48+
// If your cluster does not run on GKE or it runs on GKE and pulls images from other private registries, add the following:
4849
"auths": {
4950
"gcr.io": {
5051
"auth": "BASE64-ENCODED-AUTH-DETAILS"
5152
}
5253
// Add other registries as necessary
54+
},
55+
56+
// If your cluster runs on GKE and you are using GCR, add the following:
57+
"credHelpers": {
58+
"us.gcr.io": "gcloud",
59+
"asia.gcr.io": "gcloud",
60+
"marketplace.gcr.io": "gcloud",
61+
"gcr.io": "gcloud",
62+
"eu.gcr.io": "gcloud",
63+
"staging-k8s.gcr.io": "gcloud"
5364
}
5465
}
5566
```

0 commit comments

Comments
 (0)