-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pipeline cordon and drain (#515)
* feat: 🎸 add pipeline cmd to trigger cordon and drain job from local * docs(cobra): update auto-generated documentation --------- Co-authored-by: jaskaransarkaria <[email protected]>
- Loading branch information
1 parent
7bd5786
commit ccb12d8
Showing
5 changed files
with
112 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
## cloud-platform pipeline cordon-and-drain | ||
|
||
cordon and drain a node group on a cluster | ||
|
||
### Synopsis | ||
|
||
|
||
Running this command will cordon and drain an existing node group in a eks cluster in the cloud-platform aws account. | ||
It will not terminate the nodes nor will it delete the node group. | ||
|
||
The cordon and drain will run remotely in the pipeline, and under the hood it calls "cloud-platform cluster recycle-node --name <node-name> --drain-only --ignore-label" | ||
|
||
You must have the following environment variables set, or passed via arguments: | ||
- a cluster name | ||
|
||
** You _must_ have the fly cli installed ** | ||
--> https://concourse-ci.org/fly.html | ||
|
||
** You must also have wget installed ** | ||
--> brew install wget | ||
|
||
|
||
``` | ||
cloud-platform pipeline cordon-and-drain [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--cluster-name string cluster to run pipeline cmds against | ||
-h, --help help for cordon-and-drain | ||
--node-group string node group name to cordon and drain | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--skip-version-check don't check for updates | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [cloud-platform pipeline](cloud-platform_pipeline.md) - Cloud Platform pipeline actions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters