jtnctl is a command-line interface (CLI) tool that simplifies the execution of kubectl commands, such as 'logs', 'port-forward', and 'exec' It allows you to streamline Kubernetes operations with ease.
Before using jtnctl, make sure you have the following prerequisites installed on your system:
- kubectl: The Kubernetes command-line tool (
kubectl) is required to interact with Kubernetes clusters. You can download and installkubectlby following the official Kubernetes documentation
You can install jtnctl using the following methods:
Download the latest release for your platform from the Releases page.
~ $ wget https://github.com/zakyyudha/jtnctl/releases/download/v1.0.0/jtnctl_v1.0.0_darwin -O jtnctl
~ $ chmod +x jtnctl
~ $ sudo mv jtnctl /usr/local/bin/~ $ wget https://github.com/zakyyudha/jtnctl/releases/download/v1.0.0/jtnctl_v1.0.0_linux_amd64 -O jtnctl
~ $ chmod +x jtnctl
~ $ sudo mv jtnctl /usr/local/bin/Clone the repository and build jtnctl:
~ $ git clone https://github.com/zakyyudha/jtnctl.git
~ $ cd jtnctl
~ $ go build -o jtnctl main.go~ $ jtnctl --help
jtnctl is a CLI tool for simplifying kubectl commands
Usage:
jtnctl [command]
Available Commands:
config Manage configuration settings
exec Execute a command in an active service
help Help about any command
logs View logs of a Kubernetes pod
port-forward Forward ports for a Kubernetes service
Flags:
-h, --help help for jtnctl
Use "jtnctl [command] --help" for more information about a command.~ $ jtnctl config set namespace=tds-stage~ $ jtnctl port-forward [service-name] [destination:source]~ $ jtnctl logs [pod-name] [--follow] [--tail=10]~ $ jtnctl exec [pod-name] -it -- /bin/bashjtnctl allows you to config a default namespace using the set command. For example:
~ $ jtnctl config set namespace=tds-stageThe configuration is stored in a ~/.config/jtnctl/config.yaml file. You can modify it directly or use the set command to update values



