forked from kubernetes/website
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
changed example domain to be **example.com** (kubernetes#14740)
**your.private.registry.example.com** is a better choice of domain name for a non-existing sample domain name than calling it **yourprivateregistry.com** refer kubernetes#14283
- Loading branch information
1 parent
88fdfb0
commit 6bcaabc
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,7 +153,7 @@ kubectl get secret regcred --output="jsonpath={.data.\.dockerconfigjson}" | base | |
The output is similar to this: | ||
|
||
```json | ||
{"auths":{"yourprivateregistry.com":{"username":"janedoe","password":"xxxxxxxxxxx","email":"[email protected]","auth":"c3R...zE2"}}} | ||
{"auths":{"your.private.registry.example.com":{"username":"janedoe","password":"xxxxxxxxxxx","email":"[email protected]","auth":"c3R...zE2"}}} | ||
``` | ||
|
||
To understand what is in the `auth` field, convert the base64-encoded data to a readable format: | ||
|
@@ -187,7 +187,7 @@ wget -O my-private-reg-pod.yaml https://k8s.io/examples/pods/private-reg-pod.yam | |
In file `my-private-reg-pod.yaml`, replace `<your-private-image>` with the path to an image in a private registry such as: | ||
|
||
```none | ||
yourprivateregistry.com/janedoe/jdoe-private:v1 | ||
your.private.registry.example.com/janedoe/jdoe-private:v1 | ||
``` | ||
|
||
To pull the image from the private registry, Kubernetes needs credentials. | ||
|