/wsexec

websocket client and server lib for kubernetes exec command

Primary LanguageGoMIT LicenseMIT

Introduction

websocket client and server lib for kubernetes exec command.

Install

go get github.com/lixianyang/wsexec

Example

server

Change kubeconfig load way if needed.

See examples

cd example/server
go mod tidy
go run main.go

client

Change namespace, pod and command before run main.go

See examples

cd example/client
go mod tidy
go run main.go