mirror of https://github.com/kubernetes/kops.git
Update docs for config file
Update the paths, and add a concrete example of a configuration file.
This commit is contained in:
parent
a92ee38741
commit
57a7cb2d4e
|
|
@ -42,8 +42,17 @@ Repeat for each cluster needing to be moved.
|
|||
|
||||
## State store configuration
|
||||
|
||||
State store configuration must be use with `kops` cli. It will be retrieve in order through:
|
||||
+ command line argument `--config $HOME/yourconfig` or `--state s3://yourstatestore`
|
||||
+ envirornment variable `export KOPS_STATE_STORE=s3://yourstatestore`
|
||||
+ config file `.kops.yaml`, `$HOME/.kops.yaml`, `$HOME/.kops/config.yaml`
|
||||
It assume that $HOME is correctly set.
|
||||
There are a few ways to configure your state store. In priority order:
|
||||
|
||||
+ command line argument `--state s3://yourstatestore`
|
||||
+ environment variable `export KOPS_STATE_STORE=s3://yourstatestore`
|
||||
+ config file `$HOME/.kops.yaml`
|
||||
+ config file `$HOME/.kops/config`
|
||||
|
||||
### Configuration file example:
|
||||
|
||||
`$HOME/.kops/config` might look like this:
|
||||
|
||||
```
|
||||
kops_state_store: s3://yourstatestore
|
||||
```
|
||||
|
|
|
|||
Loading…
Reference in New Issue