项目作者: Duske

项目描述 :
Kubernetes to External Service
高级语言: Go
项目地址: git://github.com/Duske/kutex.git
创建时间: 2020-03-23T16:38:44Z
项目社区:https://github.com/Duske/kutex

开源协议:

下载


KutEx - Kubernetes to External Service

Build Status

This little tool helps you to replace a service with one that points to a (local) endpoint
quickly.
It can be helpful especially during local development, when you want services
inside the cluster to access a local running application.

Usage

A command-line interface to point services to external applications.

  1. Usage:
  2. kutex [flags]
  3. kutex [command]
  4. Available Commands:
  5. help Help about any command
  6. replace Point a service to an external service
  7. restore Restore previously replaced service
  8. Flags:
  9. -h, --help help for kutex

Replace

Replace a service with a service pointing to an external endpoint. While the original service gets deleted, it is attached as an annotation to the new service and can be restored later.

  1. Usage:
  2. kutex replace <servicename> <external host> [flags]
  3. Flags:
  4. -h, --help help for replace
  5. -k, --kubeconfig string (optional) absolute path to the kubeconfig file (default "/Users/johndoe/.kube/config")
  6. -n, --namespace string The namespace the current service is placed (default "default")

Example

  1. kutex replace superservice 192.168.64.1

Restore

Restore a replaced service by kutex. This bring the original service back in place.

Alternatively, you can also apply your original service resource definition.

  1. Usage:
  2. kutex restore [flags]
  3. Flags:
  4. -h, --help help for restore
  5. -k, --kubeconfig string (optional) absolute path to the kubeconfig file (default "/Users/dchabrowski/.kube/config")
  6. -n, --namespace string The namespace the current service is placed (default "default")

Example

  1. kutex restore