Search
Varnish Controller

vcli routingrule add

Add new routing-rule

Synopsis

Add a new routing-rule to the system.

vcli routingrule add [Name] [flags]

Options

      --debug-header string             Only respond with debug headers if this header exists in the request.
      --debug-headers                   Add debug headers to HTTP redirects
      --dns                             Enable DNS routing (default true)
      --dns-record-ttl string           DNS Record TTL (default "60s")
      --dns-replies int                 Define how many DNS records will be replied (default 1)
  -e, --exclude-domains string          Domains to exclude for health checks and routing
      --extroutes string                Comma separated external route IDs
      --headers stringToString          HTTP router response headers (default [])
      --health-headers stringToString   Health check headers (default [])
      --health-interval string          Interval for checking health (default "3s")
      --health-method string            Health check method (default "GET")
      --health-path string              Health check path (default "/")
      --health-status int               Expected health check status (default 200)
      --health-threshold int            Health check threshold of window size (before becoming healthy) (default 3)
      --health-timeout string           Timeout for health checks (default "3s")
      --health-window-size int          Health check window size (sliding window) (default 7)
  -h, --help                            help for add
      --history-ttl string              History TTL before endpoint lookup happen again (default "5s")
      --http                            Enable HTTP redirect routing (default true)
      --lookup-order string             Comma separated order of routing types for node selection(History,Tags,GeoIP,Random,External,LeastUtilized,Plugin:<id>,ASN:<id>,CIDR:<id>,Geolocation:<id>,RegExp:<id>,Reject:<id>)
      --retry-after string              Retry-after header duration (default "5s")
      --start-healthy                   Assume health probes to be healthy on start
      --verify-tls                      Verify TLS for health probes (default true)

Options inherited from parent commands

  -c, --config string   configuration file for the CLI (default ~/.vcli.yml)
                        Could also be set via VARNISH_CONTROLLER_CLI_CONFIG=/path/to/config.yml
      --csv             Output the response table as CSV format.
  -j, --json            Output the response table as JSON format.

SEE ALSO


®Varnish Software, Wallingatan 12, 111 60 Stockholm, Organization nr. 556805-6203