mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-11 21:12:07 +00:00
Merge pull request #15657 from agonzalezro/patch-1
Auto commit by PR queue bot
This commit is contained in:
commit
4eabda835d
@ -109,8 +109,9 @@ Here are the recommended steps to configuring your nodes to use a private regist
|
|||||||
example, run these on your desktop/laptop:
|
example, run these on your desktop/laptop:
|
||||||
1. run `docker login [server]` for each set of credentials you want to use.
|
1. run `docker login [server]` for each set of credentials you want to use.
|
||||||
1. view `$HOME/.dockercfg` in an editor to ensure it contains just the credentials you want to use.
|
1. view `$HOME/.dockercfg` in an editor to ensure it contains just the credentials you want to use.
|
||||||
1. get a list of your nodes
|
1. get a list of your nodes, for example:
|
||||||
- for example: `nodes=$(kubectl get nodes -o template --template='{{range.items}}{{.metadata.name}} {{end}}')`
|
- if you want the names: `nodes=$(kubectl get nodes -o jsonpath='{range.items[*].metadata}{.name} {end}')`
|
||||||
|
- if you want to get the IPs: `nodes=$(kubectl get nodes -o jsonpath='{range .items[*].status.addresses[?(@.type=="ExternalIP")]}{.address} {end}')`
|
||||||
1. copy your local `.dockercfg` to the home directory of root on each node.
|
1. copy your local `.dockercfg` to the home directory of root on each node.
|
||||||
- for example: `for n in $nodes; do scp ~/.dockercfg root@$n:/root/.dockercfg; done`
|
- for example: `for n in $nodes; do scp ~/.dockercfg root@$n:/root/.dockercfg; done`
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user