glooctl create virtualservice

glooctl create virtualservice

Create a Virtual Service


A virtual service describes the set of routes to match for a set of domains. Virtual services are containers for routes assigned to a domain or set of domains. Virtual services must not have overlapping domains, as the virtual service to match a request is selected by the Host header (in HTTP1) or :authority header (in HTTP2). When using Gloo Enterprise, virtual services can be configured with rate limiting and oauth.

glooctl create virtualservice [flags]


      --display-name string                        descriptive name of virtual service (defaults to resource name)
      --domains strings                            comma separated list of domains
      --enable-oidc-auth                           enable oidc auth features for this virtual service
      --enable-rate-limiting                       enable rate limiting features for this virtual service
  -h, --help                                       help for virtualservice
      --oidc-auth-app-url string                   the public url of your app
      --oidc-auth-callback-path string             the callback path. relative to the app url. (default "/oidc-gloo-callback")
      --oidc-auth-client-id string                 client id as registered with id provider
      --oidc-auth-client-secret-name string        name of the 'client secret' secret
      --oidc-auth-client-secret-namespace string   namespace of the 'client secret' secret
      --oidc-auth-issuer-url string                the url of the issuer
      --rate-limit-requests uint32                 requests per unit of time (default 100)
      --rate-limit-time-unit string                unit of time over which to apply the rate limit (default "MINUTE")

Options inherited from parent commands

      --dry-run            print kubernetes-formatted yaml rather than creating or updating a resource
  -i, --interactive        use interactive mode
      --name string        name of the resource to read or write
  -n, --namespace string   namespace for reading or writing resources (default "gloo-system")
  -o, --output string      output format: (yaml, json, table)