review rolling-update command

export var KOPS_FEATURE_FLAGS in the docs
This commit is contained in:
Giancarlo Rubio 2017-05-15 16:26:14 +02:00
parent c94373fe88
commit 44ea396832
6 changed files with 21 additions and 21 deletions

View File

@ -48,18 +48,18 @@ var (
Note: terraform users will need run the following commands all from the same directory "kops update cluster --target=terraform" then "terraform plan" then "terraform apply"
prior to running "kops rolling-update cluster"
Use KOPS_FEATURE_FLAGS="+DrainAndValidateRollingUpdate" to use beta code that drains the nodes
Use export KOPS_FEATURE_FLAGS="+DrainAndValidateRollingUpdate" to use beta code that drains the nodes
and validates the cluster. New flags for Drain and Validation operations will be shown when
the environment variable is set.`))
rollingupdate_example = templates.Examples(i18n.T(`
# Roll the currently selected kops cluster
kops rollingupdate cluster --yes
kops rolling-update cluster --yes
# Roll the k8s-cluster.example.com kops cluster
# use the new drain an validate functionality
KOPS_FEATURE_FLAGS="+DrainAndValidateRollingUpdate"
kops rollingupdate cluster k8s-cluster.example.com --yes \
export KOPS_FEATURE_FLAGS="+DrainAndValidateRollingUpdate"
kops rolling-update cluster k8s-cluster.example.com --yes \
--fail-on-validate-error="false" \
--master-interval=8m \
--node-interval=8m
@ -68,8 +68,8 @@ var (
# Roll the k8s-cluster.example.com kops cluster
# only roll the node instancegroup
# use the new drain an validate functionality
KOPS_FEATURE_FLAGS="+DrainAndValidateRollingUpdate"
kops rollingupdate cluster k8s-cluster.example.com --yes \
export KOPS_FEATURE_FLAGS="+DrainAndValidateRollingUpdate"
kops rolling-update cluster k8s-cluster.example.com --yes \
--fail-on-validate-error="false" \
--node-interval 8m \
--instance-group nodes

View File

@ -25,7 +25,7 @@ import (
var (
upgrade_long = templates.LongDesc(i18n.T(`
Automates checking for and applying Kubernetes updates. This upgrades a cluster to the latest recommended
production ready k8s version. After this command is run usekops update cluder, and kops rollingupdate cluster
production ready k8s version. After this command is run usekops update cluder, and kops rolling-update cluster
to finish a cluster upgrade.
`))

View File

@ -11,18 +11,18 @@ To perform rolling update, you need to update the cloud resources first with "ko
Note: terraform users will need run the following commands all from the same directory "kops update cluster --target=terraform" then "terraform plan" then "terraform apply" prior to running "kops rolling-update cluster"
Use KOPS FEATURE FLAGS="+DrainAndValidateRollingUpdate" to use beta code that drains the nodes and validates the cluster. New flags for Drain and Validation operations will be shown when the environment variable is set.
Use export KOPS FEATURE FLAGS="+DrainAndValidateRollingUpdate" to use beta code that drains the nodes and validates the cluster. New flags for Drain and Validation operations will be shown when the environment variable is set.
### Examples
```
# Roll the currently selected kops cluster
kops rollingupdate cluster --yes
kops rolling-update cluster --yes
# Roll the k8s-cluster.example.com kops cluster
# use the new drain an validate functionality
KOPS_FEATURE_FLAGS="+DrainAndValidateRollingUpdate"
kops rollingupdate cluster k8s-cluster.example.com --yes \
export KOPS_FEATURE_FLAGS="+DrainAndValidateRollingUpdate"
kops rolling-update cluster k8s-cluster.example.com --yes \
--fail-on-validate-error="false" \
--master-interval=8m \
--node-interval=8m
@ -31,8 +31,8 @@ Use KOPS FEATURE FLAGS="+DrainAndValidateRollingUpdate" to use beta code that dr
# Roll the k8s-cluster.example.com kops cluster
# only roll the node instancegroup
# use the new drain an validate functionality
KOPS_FEATURE_FLAGS="+DrainAndValidateRollingUpdate"
kops rollingupdate cluster k8s-cluster.example.com --yes \
export KOPS_FEATURE_FLAGS="+DrainAndValidateRollingUpdate"
kops rolling-update cluster k8s-cluster.example.com --yes \
--fail-on-validate-error="false" \
--node-interval 8m \
--instance-group nodes

View File

@ -11,7 +11,7 @@ To perform rolling update, you need to update the cloud resources first with "ko
Note: terraform users will need run the following commands all from the same directory "kops update cluster --target=terraform" then "terraform plan" then "terraform apply" prior to running "kops rolling-update cluster"
Use KOPS FEATURE FLAGS="+DrainAndValidateRollingUpdate" to use beta code that drains the nodes and validates the cluster. New flags for Drain and Validation operations will be shown when the environment variable is set.
Use export KOPS FEATURE FLAGS="+DrainAndValidateRollingUpdate" to use beta code that drains the nodes and validates the cluster. New flags for Drain and Validation operations will be shown when the environment variable is set.
```
kops rolling-update cluster
@ -21,12 +21,12 @@ kops rolling-update cluster
```
# Roll the currently selected kops cluster
kops rollingupdate cluster --yes
kops rolling-update cluster --yes
# Roll the k8s-cluster.example.com kops cluster
# use the new drain an validate functionality
KOPS_FEATURE_FLAGS="+DrainAndValidateRollingUpdate"
kops rollingupdate cluster k8s-cluster.example.com --yes \
export KOPS_FEATURE_FLAGS="+DrainAndValidateRollingUpdate"
kops rolling-update cluster k8s-cluster.example.com --yes \
--fail-on-validate-error="false" \
--master-interval=8m \
--node-interval=8m
@ -35,8 +35,8 @@ kops rolling-update cluster
# Roll the k8s-cluster.example.com kops cluster
# only roll the node instancegroup
# use the new drain an validate functionality
KOPS_FEATURE_FLAGS="+DrainAndValidateRollingUpdate"
kops rollingupdate cluster k8s-cluster.example.com --yes \
export KOPS_FEATURE_FLAGS="+DrainAndValidateRollingUpdate"
kops rolling-update cluster k8s-cluster.example.com --yes \
--fail-on-validate-error="false" \
--node-interval 8m \
--instance-group nodes

View File

@ -5,7 +5,7 @@ Upgrade a kubernetes cluster.
### Synopsis
Automates checking for and applying Kubernetes updates. This upgrades a cluster to the latest recommended production ready k8s version. After this command is run usekops update cluder, and kops rollingupdate cluster to finish a cluster upgrade.
Automates checking for and applying Kubernetes updates. This upgrades a cluster to the latest recommended production ready k8s version. After this command is run usekops update cluder, and kops rolling-update cluster to finish a cluster upgrade.
### Examples

View File

@ -5,7 +5,7 @@ Upgrade a kubernetes cluster.
### Synopsis
Automates checking for and applying Kubernetes updates. This upgrades a cluster to the latest recommended production ready k8s version. After this command is run usekops update cluder, and kops rollingupdate cluster to finish a cluster upgrade.
Automates checking for and applying Kubernetes updates. This upgrades a cluster to the latest recommended production ready k8s version. After this command is run usekops update cluder, and kops rolling-update cluster to finish a cluster upgrade.
```
kops upgrade cluster