selkies-project / selkies-vdi

WebRTC & Xpra desktops on Selkies
https://selkies.io
Apache License 2.0
66 stars 17 forks source link

add wireshark sidecar #37

Closed danisla closed 2 years ago

danisla commented 2 years ago

Adds a wireshark container sidecar if the appParam: enableWireshark is "true"

Usage

After enabling the appParam and launching a pod:

  1. Create a port-forward to the web interface:
    kubectl port-forward -n USER_NAMESPACE POD_NAME 3000:3000
  2. Open your browser to localhost:3000 to see and use the wireshark UI.
  3. Save your capture to a file like: /tmp/capture.pcapng
  4. Copy pcap files out of the container to your local environment:
    kubectl -n USER_NAMESPACE cp -c wireshark POD_NAME:/tmp/capture.pcapng capture.pcapng

NOTE: if you exit wireshark, it will not be restarted automatically, you have to shutdown and launch the pod again.