kubectl-point

command module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2022 License: BSD-2-Clause Imports: 1 Imported by: 0

README

kubectl-point

kubectl-point is a kubectl plugin that allows users to make use of an existing ingress controller to redirect domain names to specific ip addresses that the cluster has access to.

Build

Requirement:

  • go 1.16.x/1.17.x

To build:

$ go mod tidy
$ go build

And then mv the generated binary to your /usr/local/bin/kubectl-point

Usage

kubectl-point

This creates an Ingress, a headless Service and custom Endpoint on your cluster that accepts a http call to example.org and redirects them to 10.0.0.1:8080

  • kubectl point example.org --to=10.0.0.1:8080

This creates an ingress for example.org that listens on both http and https and redirects them to 10.0.0.1:8080 and also attempts to generate the necessary tls certs with cert-manager. If your cluster does not have cert-manager (v1) installed, this command will error out.

  • kubectl point example.org --to=10.0.0.1:8080 --tls-auto

Coming Soon

This looks for a tls.key and tls.crt in /certs and uses them to configure tls on your ingress controller

  • kubectl point example.org --to=10.0.0.1:8080 --tls-dir=/certs

Use the --tls-key and --tls-cert flag to specify the tls.key and tls.crt that will be sent to the ingress controller

  • kubectl point example.org --to=10.0.0.1:8080 --tls-key=/certs/tls.key --tls-cert=/certs/tls.crt

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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