ktunnel inject deployment

Inject server sidecar to a deployment and run the ktunnel client to establish a connection

ktunnel inject deployment [flags] DEPLOYMENT_NAME [ports]

Examples


# Inject a back tunnel from a running deployment to local mysql and redis 
ktunnel inject deployment mydeployment 3306 6379

Options

  -c, --ca-file string                tls cert auth file
      --cert string                   TLS certificate file
      --context string                Kubernetes Context
  -e, --eject                         Eject the sidecar when finished (default true)
  -h, --help                          help for deployment
      --key string                    TLS key file
  -n, --namespace string              Namespace (default "default")
  -s, --scheme string                 Connection scheme (default "tcp")
  -o, --server-host-override string   Server name use to verify the hostname returned by the TLS handshake
  -i, --server-image string           Ktunnel server image to use (default "docker.io/omrieival/ktunnel:v1.5.3")

Options inherited from parent commands

  -p, --port int   The port to use to establish the tunnel (default 28688)
  -t, --tls        Connection uses tls if true, else plain TCP
  -v, --verbose    verbose mode

SEE ALSO

  • ktunnel inject - Inject server sidecar to the cluster and run the ktunnel client to establish a connection
Auto generated by spf13/cobra on 29-Apr-2023