exec

command
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

README

Create putty shell in container when http

This example shows you how to create putty container console shell when http.

Running this example

Make sure your kubectl and ~/.kube/config is configured.

Get the pod name and container name.

Modify the url parameters in ./frontend/index.html according your actual Kubernetes cluster.

Running this application with:

go build -o exec .
./exec

It will listen on :8080 port, you can access the http://127.0.0.1:8080 from browser. It will open the container putty console in browser.

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