跳转至

tenax console

tenax console

Open the web console in a browser

Synopsis

Opens the web console.

With a server saved by "tenax login" (or --server / $TENAX_SERVER), it opens that URL. Otherwise, or with --port-forward, it forwards a local port to the tenax-api Service through your kubeconfig, like "kubectl port-forward", opens it and keeps the forward running until Ctrl+C. Other tenax commands can use it from another terminal with TENAX_SERVER=http://127.0.0.1:.

tenax console [flags]

Examples

  tenax console
  tenax console --port-forward --context prod --port 9000
  tenax console --no-browser

Options

      --address string       local address to listen on (default "127.0.0.1")
      --context string       kubeconfig context (default: the current one)
  -h, --help                 help for console
      --kubeconfig string    kubeconfig file (default: $KUBECONFIG or ~/.kube/config)
  -n, --namespace string     namespace Tenax runs in (default "tenax-system")
      --no-browser           print the URL without opening a browser
      --port int             local port (0 picks a free one; a busy port falls back to a free one) (default 8080)
      --port-forward         always port-forward, even when a server is saved
      --server tenax login   Tenax URL to open (default: saved by tenax login, or $TENAX_SERVER)

SEE ALSO

  • tenax - Tenax: database backup and restore for Kubernetes