Stay organized with collections
Save and categorize content based on your preferences.
You can use the gkectl command line interface for a for a variety tasks,
including the following:
Generate a template for a cluster configuration file.
Validate a cluster configuration file.
Prepare a vSphere environment.
Create a cluster.
Upgrade a cluster.
Update a cluster.
Resize a cluster.
Diagnose cluster issues.
To list all commands:
gkectl help
To get help for a specific command:
gkectl COMMAND --help
Environment variable for the admin cluster kubeconfig file
Several gkectl commands require the path of the admin cluster kubeconfig file.
You can specify the path by exporting a GKECTL_KUBECONFIG environment
variable. For example:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003e\u003ccode\u003egkectl\u003c/code\u003e is a command-line interface used for managing clusters, including creating, upgrading, updating, and resizing them.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egkectl\u003c/code\u003e tool can also generate and validate cluster configuration files and assist in preparing a vSphere environment.\u003c/p\u003e\n"],["\u003cp\u003eTo view all available commands, use \u003ccode\u003egkectl help\u003c/code\u003e, or use \u003ccode\u003egkectl COMMAND --help\u003c/code\u003e for details on a specific command.\u003c/p\u003e\n"],["\u003cp\u003eYou can set the \u003ccode\u003eGKECTL_KUBECONFIG\u003c/code\u003e environment variable to specify the admin cluster kubeconfig file path, otherwise, you will need to specify it with the \u003ccode\u003e--kubeconfig\u003c/code\u003e flag.\u003c/p\u003e\n"]]],[],null,[]]