gkectl의 경우 기본 로깅 설정만 사용해도 됩니다. gkectl의 경우 기본 로그 파일은 /home/ubuntu/.config/gke-on-prem/logs/gkectl-$(date).log이며 파일은 gkectl을 실행하는 로컬 디렉터리의 logs/gkectl-$(date).log 파일과 심볼릭 링크됩니다.
기본 -v5 세부정보 수준에는 지원팀에서 필요한 모든 로그 항목이 포함됩니다. 로그 파일에는 실행된 명령어와 실패 메시지가 포함됩니다.
도움이 필요한 경우 로그 파일을 지원팀에 보내는 것이 좋습니다.
로그 파일에 기본 위치가 아닌 위치 지정
gkectl 로그 파일에 기본 위치가 아닌 위치를 지정하려면 --log_file 플래그를 사용합니다. 지정한 로그 파일은 로컬 디렉터리와 심볼릭 링크되지 않습니다.
[[["이해하기 쉬움","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(UTC)"],[],[],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."]]