onwards

0.0.7Β β€’Β PublicΒ β€’Β Published

magoon-face

ONWARDS

πŸ‘ Super simple shareable portforwarding πŸ‘


β˜€οΈ What's this?

Onwards is a command line tool for managing port-forwards in Kubernetes environments. It can start and stop port-forwards and display logs from each port-forward. It automatically retries a port-forward if it disconnects. Onwards uses a config file which will make it super simple to port-forward to necessary services for the entire team. πŸ‘

πŸ“‹ Prerequisites

To get started with Onwards, you need to have the following installed:

  • Node.js (version 12 or later)
  • Yarn (optional, can also use NPM)

πŸš€ Getting Started

To use Onwards, you can install it globally using Yarn or NPM:

npm install -g onwards

Or if you prefer using Yarn:

yarn global add onwards

Alternatively, you can run it without installing by using npx:

npx onwards

πŸ‘‰ Pro tip: Make sure your Kubernetes cluster is up and running before using Onwards!

πŸ’» Local Development

To develop on Onwards locally, follow these steps:

  1. Clone the repository: git clone https://github.com/username/onwards.git πŸ™
  2. Install the dependencies: npm install or yarn πŸš€
  3. Start Onwards: npm start or yarn start 🌟

πŸš€ This will start Onwards with the default onwards.json.

βš™οΈ Configuration

Onwards uses a configuration file called onwards.json to define the port-forwarding services. Here is an example configuration file:

{
  "services": [
    {
      "name": "service",
      "command": "kubectl port-forward another-service 5000:5000"
    },
    {
      "name": "another service",
      "command": "kubectl port-forward another-service 5001:5000"
    }
  ]
}

πŸ‘‰ Pro tip: If you're not sure what kubectl port-forward does, you can learn more about it in the Kubernetes documentation.

Each service object in the services array has a name and a command property. The name property is a descriptive name for the service, and the command property is the command to start the port-forward.

πŸ’ͺ Contributing

If you encounter any issues or have suggestions for how to improve Onwards, please feel free to open an issue or a pull request on our GitHub repository. We welcome contributions of all kinds! 🎁

πŸ“„ License

This project is licensed under the MIT License.

πŸ‘‹ Thanks for using Onwards! If you have any questions or feedback, feel free to open an issue or reach out to me on Twitter.

Package Sidebar

Install

npm i onwards

Weekly Downloads

1

Version

0.0.7

License

MIT

Unpacked Size

37.6 kB

Total Files

25

Last publish

Collaborators

  • ntwigs