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:
Eric Greer 2021-04-08 12:32:17 -07:00 committed by Ciprian Hacman
parent 6f302f0ea7
commit 21c6007e71
2 changed files with 8 additions and 1 deletions

View File

@ -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.

View File

@ -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]
``` ```