[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-31。"],[],[],null,["You can use the `gkectl` command line interface for a for a variety tasks,\nincluding the following:\n\n- Generate a template for a cluster configuration file.\n- Validate a cluster configuration file.\n- Prepare a vSphere environment.\n- Create a cluster.\n- Upgrade a cluster.\n- Update a cluster.\n- Resize a cluster.\n- Diagnose cluster issues.\n\nBasic commands\n\nTo list all commands:\n\n```\ngkectl help\n```\n\nTo get help for a specific command:\n\n```\ngkectl COMMAND --help\n```\n\nEnvironment variable for the admin cluster kubeconfig file\n\nSeveral `gkectl` commands require the path of the admin cluster kubeconfig file.\nYou can specify the path by exporting a `GKECTL_KUBECONFIG` environment\nvariable. For example:\n\n```\nexport GKECTL_KUBECONFIG=/path/to/my-admin-cluster-kubeconfig\n```\n\nIf you do not export the `GKECTL_KUBECONFIG` environment variable, then you must\nuse the `--kubeconfig` flag when you run the command.\n\nDownload `gkectl`\n\nFor information on downloading `gkectl`, see\n[Downloads](/kubernetes-engine/distributed-cloud/vmware/docs/downloads).\n\nDefault logging behavior for `gkectl`\n\nFor `gkectl` it's sufficient to use the default logging settings. For `gkectl`,\nthe default log file is\n`/home/ubuntu/.config/gke-on-prem/logs/gkectl-$(date).log`, and the file is\nsymlinked with the `logs/gkectl-$(date).log` file in the local directory where\nyou run `gkectl`.\n\nThe default `-v5` verbosity level covers all the log entries needed by the\nsupport team. The log file includes the command executed and the failure message.\n\nWe recommend that you send the log file to the support team when you need help.\n\nSpecifying a non-default locations for log files\n\nTo specify a non-default location for the `gkectl` log file, use the\n`--log_file` flag. The log file that you specify will not be symlinked with the\nlocal directory."]]