Add commit for hostname
This commit is contained in:
@@ -202,7 +202,7 @@ kubectl create secret docker-registry secret-tiger-docker \
|
|||||||
--docker-username=tiger \
|
--docker-username=tiger \
|
||||||
--docker-password=pass113 \
|
--docker-password=pass113 \
|
||||||
--docker-email=tiger@acme.com \
|
--docker-email=tiger@acme.com \
|
||||||
--docker-server=my-registry:5000
|
--docker-server=my-registry.example:5000
|
||||||
```
|
```
|
||||||
|
|
||||||
This command creates a Secret of type `kubernetes.io/dockerconfigjson`.
|
This command creates a Secret of type `kubernetes.io/dockerconfigjson`.
|
||||||
@@ -212,15 +212,21 @@ on the fly:
|
|||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"auths": {
|
"apiVersion": "v1",
|
||||||
"https://index.docker.io/v1/": {
|
"data": {
|
||||||
"username": "tiger",
|
".dockerconfigjson": "eyJhdXRocyI6eyJteS1yZWdpc3RyeTo1MDAwIjp7InVzZXJuYW1lIjoidGlnZXIiLCJwYXNzd29yZCI6InBhc3MxMTMiLCJlbWFpbCI6InRpZ2VyQGFjbWUuY29tIiwiYXV0aCI6ImRHbG5aWEk2Y0dGemN6RXhNdz09In19fQ=="
|
||||||
"password": "pass113",
|
},
|
||||||
"email": "tiger@acme.com",
|
"kind": "Secret",
|
||||||
"auth": "dGlnZXI6cGFzczExMw=="
|
"metadata": {
|
||||||
}
|
"creationTimestamp": "2021-07-01T07:30:59Z",
|
||||||
}
|
"name": "secret-tiger-docker",
|
||||||
|
"namespace": "default",
|
||||||
|
"resourceVersion": "566718",
|
||||||
|
"uid": "e15c1d7b-9071-4100-8681-f3a7a2ce89ca"
|
||||||
|
},
|
||||||
|
"type": "kubernetes.io/dockerconfigjson"
|
||||||
}
|
}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Basic authentication Secret
|
### Basic authentication Secret
|
||||||
|
|||||||
Reference in New Issue
Block a user