[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-01 (世界標準時間)。"],[],[],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."]]