https://github.com/superseb/rancher2ws
Websocket test for Rancher 2
https://github.com/superseb/rancher2ws
rancher
Last synced: 4 months ago
JSON representation
Websocket test for Rancher 2
- Host: GitHub
- URL: https://github.com/superseb/rancher2ws
- Owner: superseb
- Created: 2019-02-11T13:38:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-11T13:39:24.000Z (over 7 years ago)
- Last Synced: 2025-01-26T07:26:31.014Z (over 1 year ago)
- Topics: rancher
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rancher 2 websocket tester
Applicable to Rancher version 2
## Usage
1. Create API key through Rancher UI and save the Bearer token (`token-xxxxx:string`)
1. Run the container
```docker run superseb/rancher2ws rancher_server_hostname_or_ip bearer-token```
For example:
```
$ docker run --net=host superseb/rancher2ws:latest 127.0.0.1 token-2d26b:lbz2gjgzl79jls2vxc4kwps4cp2fkhfpthcrb82jx4rhchqfh2vj57
(node:1) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
Socket opened
{"name":"ping","data":{}}
ping
```