k8s-ingress-hosts

command module
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2019 License: BSD-2-Clause Imports: 17 Imported by: 0

README

glasses

see all the Ingress resources from k8s.

Installation

macOS

$ brew tap wakeful/selection
$ brew install glasses

Linux

curl -Lo glasses https://github.com/wakeful/glasses/releases/download/0.2.0/glasses-linux-amd64 && chmod +x glasses && sudo mv glasses /usr/sbin/

src

go get -u github.com/wakeful/glasses

Usage

help mode:

$ glasses -h
Usage of glasses:
  -host-file string
        host file location (default "/etc/hosts")
  -write
        rewrite host file?

dry-run mode:

$ glasses
# reading k8s ingress resource...
192.168.99.100 grafana.local     # sad-chicken-grafana
192.168.99.100 prometheus.local  # your-turkey-prometheus

populate your /etc/hosts file:

$ sudo -E glasses -write
# reading k8s ingress resource...
192.168.99.100 grafana.local     # sad-chicken-grafana
192.168.99.100 prometheus.local  # your-turkey-prometheus

$ cat /etc/hosts
# generated using glasses start #
192.168.99.100 grafana.local     # sad-chicken-grafana
192.168.99.100 prometheus.local  # your-turkey-prometheus

# generated using glasses end #

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