Skip to content

Commit cb712cd

Browse files
author
kartik494
committed
Add commit for hostname
1 parent c1dc2b0 commit cb712cd

File tree

1 file changed

+15
-9
lines changed
  • content/en/docs/concepts/configuration

1 file changed

+15
-9
lines changed

content/en/docs/concepts/configuration/secret.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ kubectl create secret docker-registry secret-tiger-docker \
202202
--docker-username=tiger \
203203
--docker-password=pass113 \
204204
205-
--docker-server=my-registry:5000
205+
--docker-server=my-registry.example:5000
206206
```
207207

208208
This command creates a Secret of type `kubernetes.io/dockerconfigjson`.
@@ -212,15 +212,21 @@ on the fly:
212212

213213
```json
214214
{
215-
"auths": {
216-
"https://index.docker.io/v1/": {
217-
"username": "tiger",
218-
"password": "pass113",
219-
"email": "[email protected]",
220-
"auth": "dGlnZXI6cGFzczExMw=="
221-
}
222-
}
215+
"apiVersion": "v1",
216+
"data": {
217+
".dockerconfigjson": "eyJhdXRocyI6eyJteS1yZWdpc3RyeTo1MDAwIjp7InVzZXJuYW1lIjoidGlnZXIiLCJwYXNzd29yZCI6InBhc3MxMTMiLCJlbWFpbCI6InRpZ2VyQGFjbWUuY29tIiwiYXV0aCI6ImRHbG5aWEk2Y0dGemN6RXhNdz09In19fQ=="
218+
},
219+
"kind": "Secret",
220+
"metadata": {
221+
"creationTimestamp": "2021-07-01T07:30:59Z",
222+
"name": "secret-tiger-docker",
223+
"namespace": "default",
224+
"resourceVersion": "566718",
225+
"uid": "e15c1d7b-9071-4100-8681-f3a7a2ce89ca"
226+
},
227+
"type": "kubernetes.io/dockerconfigjson"
223228
}
229+
224230
```
225231

226232
### Basic authentication Secret

0 commit comments

Comments
 (0)