[[["わかりやすい","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-08-30 UTC。"],[],[],null,["# Anthos-gke aws clusters\n\nThe commands in `anthos-gke aws clusters` operate on\nGKE on AWS\n[user clusters](/kubernetes-engine/multi-cloud/docs/aws/previous-generation/concepts/architecture). You authenticate to your\nuser clusters with the [`get-credentials`](#get-credentials) command. You can\nalso gather additional information for debugging with the\n[`diagnose`](#diagnose) command.\n\nGet-credentials\n---------------\n\nThe `get-credentials` command updates a `kubeconfig` file with credentials and\nendpoint information for a GKE on AWS user cluster. By default,\ncredentials are appended to `~/.kube/config`. If you set the `KUBECONFIG`\nenvironment variable to another file path, `anthos-gke` appends credentials to\nthat file. \n\n anthos-gke aws clusters get-credentials \u003cvar translate=\"no\"\u003eNAME\u003c/var\u003e [--workspace \u003cvar translate=\"no\"\u003eDIRECTORY\u003c/var\u003e]\n\n### Positional arguments\n\n\u003cvar translate=\"no\"\u003eNAME\u003c/var\u003e\n: Name of the cluster that `anthos-gke` generates credentials for. The name\n should match the `metadata.name` field of the\n [`AWSCluster`](/kubernetes-engine/multi-cloud/docs/aws/previous-generation/reference/awscluster) resource.\n\n### Optional flags\n\n`--workspace `\u003cvar translate=\"no\"\u003e[DIRECTORY]\u003c/var\u003e\n: An optional argument for the directory containing the\n `anthos-gke.yaml` file. Defaults to the current directory.\n\n### Examples\n\nTo get credentials for a cluster called `cluster-0` defined in the current\nworking directory, run the following command: \n\n anthos-gke aws clusters get-credentials cluster-0\n\nDiagnose\n--------\n\nThe `diagnose snapshot` command generates a\n[support bundle](/kubernetes-engine/multi-cloud/docs/aws/previous-generation/troubleshooting#snapshots)\nto help Google Cloud support debug issues with your user clusters. The\nsupport bundle is a tar file which includes configuration, cluster events, and\nlogs. Send this file to your\n[technical support manager](/kubernetes-engine/multi-cloud/docs/aws/previous-generation/getting-support). \n\n anthos-gke aws clusters diagnose snapshot \u003cvar translate=\"no\"\u003eCLUSTER_NAME\u003c/var\u003e\n --ssh-key-path \u003cvar translate=\"no\"\u003ePATH\u003c/var\u003e\n [--bastion-ip \u003cvar translate=\"no\"\u003eIP\u003c/var\u003e]\n [--bastion-ssh-key-path \u003cvar translate=\"no\"\u003ePATH\u003c/var\u003e]\n [--cluster-ssh-key-path \u003cvar translate=\"no\"\u003ePATH\u003c/var\u003e]\n [--dry-run]\n [--mgmt-service-ssh-key-path \u003cvar translate=\"no\"\u003ePATH\u003c/var\u003e]\n [--nodepool-ssh-key-path \u003cvar translate=\"no\"\u003ePATH\u003c/var\u003e]\n [--output \u003cvar translate=\"no\"\u003ePATH\u003c/var\u003e]\n [--quiet]\n [--snapshot-config \u003cvar translate=\"no\"\u003ePATH\u003c/var\u003e]\n [--workspace \u003cvar translate=\"no\"\u003eDIRECTORY\u003c/var\u003e]\n\n### Positional arguments\n\n\u003cvar translate=\"no\"\u003eCLUSTER_NAME\u003c/var\u003e\n: Name of the cluster to generate a support bundle for. This value should\n match the `metadata.name` field of your\n [`AWSCluster`](/kubernetes-engine/multi-cloud/docs/aws/previous-generation/reference/awscluster).\n\n### Flags\n\n`--ssh-key-path `\u003cvar translate=\"no\"\u003ePATH\u003c/var\u003e\n: A required argument which gives the path to an SSH key file. If you\n created a key with `anthos-gke management init`, this value is\n `~/.ssh/anthos-gke`.\n\n### Optional flags\n\n`[--bastion-ip `\u003cvar translate=\"no\"\u003eIP\u003c/var\u003e`]`\n: An override for the bastion host IP address in the current workspace.\n\n`[--bastion-ssh-key-path `\u003cvar translate=\"no\"\u003ePATH\u003c/var\u003e`]`\n: A specific SSH key file for the bastion host. Defaults to `--ssh-key-path`.\n\n`[--cluster-ssh-key-path `\u003cvar translate=\"no\"\u003ePATH\u003c/var\u003e`]`\n: A specific SSH key file for the workload cluster control plane machines.\n Defaults to `--ssh-key-path`.\n\n`[--dry-run]`\n: An option to display the snapshot configuration file without generating a\n support bundle.\n\n`[--mgmt-service-ssh-key-path `\u003cvar translate=\"no\"\u003ePATH\u003c/var\u003e`]`\n: A specific SSH key file for the management service. Defaults to\n `--ssh-key-path`.\n\n`[--nodepool-ssh-key-path `\u003cvar translate=\"no\"\u003ePATH\u003c/var\u003e`]`\n: A specific SSH key file for node pool machines. Defaults to\n `--ssh-key-path`.\n\n`[--output `\u003cvar translate=\"no\"\u003ePATH\u003c/var\u003e`]`\n: A file path for the support bundle tarball.\n\n`[--quiet]`\n: An option to eliminate messages printed to the console.\n\n`[--snapshot-config `\u003cvar translate=\"no\"\u003ePATH\u003c/var\u003e`]`\n: The path to a YAML snapshot configuration file (optional).\n\n`[--workspace `\u003cvar translate=\"no\"\u003eDIR\u003c/var\u003e`]`\n: Workspace directory which should contain the `anthos-gke.yaml` configuration\n file. Defaults to the current directory.\n\n### Examples\n\nTo generate a support bundle for a workload cluster named `cluster-0`, run the\nfollowing command: \n\n anthos-gke aws clusters diagnose snapshot cluster-0 \\\n --ssh-key-path ~/.ssh/anthos-gke \\\n --workspace ~/example/workspace\n\nTo view the default snapshot configuration, run the following command: \n\n anthos-gke aws clusters diagnose snapshot cluster-0 \\\n --ssh-key-path ~/.ssh/anthos-gke \\\n --dry-run\n\nTo specify a custom snapshot configuration file (including your own bash and\nkubectl commands), run the following command: \n\n anthos-gke aws clusters diagnose snapshot cluster-0 \\\n --ssh-key-path ~/.ssh/anthos-gke\n --snapshot-config ~/my-snapshot-config.yaml"]]