mirror of https://github.com/kubernetes/kops.git
Update kops_create_secret_dockerconfig.md
Today we were implementing an authenticated docker user, but it was unclear how exactly to do that. We learned that simply making this secret within kops was all that was needed for the docker config to start appearing on newly built nodes. It would be nice if the documentation here reflected that. It would have saved us some time.
This commit is contained in:
parent
6f302f0ea7
commit
21c6007e71
|
|
@ -35,7 +35,12 @@ var (
|
||||||
createSecretDockerconfigLong = templates.LongDesc(i18n.T(`
|
createSecretDockerconfigLong = templates.LongDesc(i18n.T(`
|
||||||
Create a new docker config, and store it in the state store.
|
Create a new docker config, and store it in the state store.
|
||||||
Used to configure docker on each master or node (i.e. for auth)
|
Used to configure docker on each master or node (i.e. for auth)
|
||||||
Use update to modify it, this command will only create a new entry.`))
|
Use update to modify it, this command will only create a new entry.
|
||||||
|
|
||||||
|
After creating a dockerconfig secret, a .docker/config.json file will
|
||||||
|
be added to all newly created nodes without running kops update.
|
||||||
|
This file should also apply auth to containerd, which is the default
|
||||||
|
container runtime in kops 1.20 and above.`))
|
||||||
|
|
||||||
createSecretDockerconfigExample = templates.Examples(i18n.T(`
|
createSecretDockerconfigExample = templates.Examples(i18n.T(`
|
||||||
# Create a new docker config.
|
# Create a new docker config.
|
||||||
|
|
|
||||||
|
|
@ -9,6 +9,8 @@ Create a docker config.
|
||||||
|
|
||||||
Create a new docker config, and store it in the state store. Used to configure docker on each master or node (i.e. for auth) Use update to modify it, this command will only create a new entry.
|
Create a new docker config, and store it in the state store. Used to configure docker on each master or node (i.e. for auth) Use update to modify it, this command will only create a new entry.
|
||||||
|
|
||||||
|
After creating a dockerconfig secret, a .docker/config.json file will be added to all newly created nodes without running kops update. This file should also apply auth to containerd, which is the default container runtime in kops 1.20 and above.
|
||||||
|
|
||||||
```
|
```
|
||||||
kops create secret dockerconfig [flags]
|
kops create secret dockerconfig [flags]
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue