Gadget socket-collector

    The socket-collector gadget gathers information about TCP and UDP sockets.

    Example CR

    apiVersion: gadget.kinvolk.io/v1alpha1
    kind: Trace
    metadata:
      name: socket-collector
      namespace: gadget
    spec:
      node: my-node
      gadget: socket-collector
      filter:
        namespace: default
        podname: mypod
      runMode: Manual
      outputMode: Status
    

    Operations

    start

    Create a snapshot of the currently open TCP and UDP sockets. Once taken, the snapshot is not updated automatically. However one can call the start operation again at any time to update the snapshot.

    $ kubectl annotate -n gadget trace/socket-collector \
        gadget.kinvolk.io/operation=start
    

    Output Modes

    • Status