smm tap

smm tap

Tap into HTTP/GRPC mesh traffic

smm tap [[ns|workload|pod]/resource-name] [flags]

Examples


  # tap the movies-v1 deployment in the default namespace
  smm tap workload/movies-v1

  # tap the movies-v1-7f9645bfd7-8vgm9 pod in the default namespace
  smm tap pod/movies-v1-7f9645bfd7-8vgm9

  # tap the smm-demo namespace
  smm tap ns/smm-demo

  # tap the smm-demo namespace request to test namespace
  smm tap ns/smm-demo --destination ns/test

Options

      --authority string          Show requests with this authority
      --destination string        Show requests to this resource
      --destination-ns string     Namespace of the destination resource; by default the current "--namespace" is used
      --direction string          Show requests with this direction (inbound|outbound)
  -h, --help                      help for tap
      --max-rps uint              Limits maximum requests per second from the logstream
      --method string             Show requests with this request method
      --ns string                 Namespace of the specified resource (default "default")
      --path string               Show requests with paths with this prefix
      --request-header strings    Filter for request header (name:value).
                                  Filters for existence of the header if only the name is specified, otherwise uses case-sensitive prefix match for the value.
      --response-code uints       Show request with this response code (default [])
      --response-header strings   Filter for response header (name:value).
                                  Filters for existence of the header if only the name is specified, otherwise uses case-sensitive prefix match for the value.
      --scheme string             Show requests with this scheme

Options inherited from parent commands

      --api-server-endpoint-address string   The publicly accessible address of the k8s api server
      --base-url string                      Custom Service Mesh Manager base URL (uses port forwarding or proxying if empty)
      --cacert string                        The CA to use for verifying Service Mesh Manager's server certificate
      --color                                use colors on non-tty outputs (default true)
      --context string                       name of the kubeconfig context to use
      --controlplane string                  name of the control plane resource to connect to, if not specified, use autodetection
      --formatting.force-color               force color even when non in a terminal
      --http-proxy string                    http proxy to be used for installing SMM components, format: hostname:port (default: empty, no proxy)
      --interactive                          ask questions interactively even if stdin or stdout is non-tty
  -c, --kubeconfig string                    path to the kubeconfig file to use for CLI requests
  -p, --local-port int                       Use this local port for port forwarding / proxying to SMM (when set to 0, a random port will be used) (default -1)
      --no-proxy string                      list of hosts to not to use HTTP proxy for (comma separated list of hostnames and ip subnets)
      --non-interactive                      never ask questions interactively
  -o, --output string                        output format (table|yaml|json) (default "table")
      --persistent-config-file string        Service Mesh Manager persistent config file to use instead of the default at ~/.cisco/smm/
      --resource-wait-timeout duration       The length of time to wait before giving up on waiting for resource conditions to met (default 5m0s)
      --skip-validate-kubeconfig             Skip validating cluster reachability
      --smm-namespace string                 Namespace in which Service Mesh Manager is installed [$SMM_NAMESPACE]
      --token string                         Authentication token to use to communicate with Service Mesh Manager
      --use-portforward                      Use port forwarding instead of proxying to reach Service Mesh Manager
  -v, --verbose                              turn on debug logging

SEE ALSO

  • smm - Install and manage Service Mesh Manager