eks-node-diagnostic

command module
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

README

eks-node-diagnostic

GitHub Actions GoDoc Go Report Card GitHub release GitHub go.mod Go version

retrieve Amazon EKS AMI with filters

Usage

$ eks-node-diagnostic --help

NAME:
   eks-node-diagnostic - 1-click NodeDiagnostic

USAGE:
   eks-node-diagnostic [global options] command [command options]

COMMANDS:
   version, v  Print version number
   help, h     Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --region value, -r value          region of the target cluster (default: "us-east-1")
   --node-name value, -n value       target node name
   --bucket-name value, -b value     bucket name for the log files
   --expire-seconds value, -t value  expiration time of the presigned-url in seconds (default: 300)
   --help, -h                        show help

Work with NodeDiagnostic

$ export REGION_NAME="us-east-1"
$ export NODE_NAME="i-abcdef987654321"
$ eks-node-diagnostic -r ${REGION_NAME} -n ${NODE_NAME} -b auto-mode-node-diagnostic-14p6ap1jq1hq | kubectl apply -f -
nodediagnostic.eks.amazonaws.com/i-abcdef987654321 created

OR

$ export REGION_NAME="us-east-1"
$ export NODE_NAME="i-abcdef987654321"
$ eks-node-diagnostic -r ${REGION_NAME} -n ${NODE_NAME} -b auto-mode-node-diagnostic-14p6ap1jq1hq
kubectl apply -f -
$ kubectl apply -f NodeDiagnostic-${NODE_NAME}.yaml
nodediagnostic.eks.amazonaws.com/i-abcdef987654321 created

FAQ

Q: Where can I find NodeDiagnostic tarball?

A: Tarball generated by NodeDiagnostic would be placed under the bucket that you specified, and the object key would be s3://{{ BUCKET_NAME }}/node-diagnostic/{{ NODE_NAME }}/log-{{ TIMESTAMP }}.tar.gz

Install

Homebrew
brew tap guessi/tap && brew update && brew install eks-node-diagnostic
For non-Homebrew users
Click to expand!
For Linux users
curl -fsSL https://github.com/guessi/eks-node-diagnostic/releases/latest/download/eks-node-diagnostic-Linux-$(uname -m).tar.gz -o - | tar zxvf -
mv -vf ./eks-node-diagnostic /usr/local/bin/eks-node-diagnostic
For macOS users
curl -fsSL https://github.com/guessi/eks-node-diagnostic/releases/latest/download/eks-node-diagnostic-Darwin-$(uname -m).tar.gz -o - | tar zxvf -
mv -vf ./eks-node-diagnostic /usr/local/bin/eks-node-diagnostic
For Windows users
$SRC = 'https://github.com/guessi/eks-node-diagnostic/releases/latest/download/eks-node-diagnostic-Windows-x86_64.tar.gz'
$DST = 'C:\Temp\eks-node-diagnostic-Windows-x86_64.tar.gz'
Invoke-RestMethod -Uri $SRC -OutFile $DST

License

Apache-2.0

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL