mirror of https://github.com/kubernetes/kops.git
review rolling-update command
export var KOPS_FEATURE_FLAGS in the docs
This commit is contained in:
parent
c94373fe88
commit
44ea396832
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
`))
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue