Skip to search

GCPHTTPFilter

networking.gke.io / v1

apiVersion: networking.gke.io/v1 kind: GCPHTTPFilter metadata: name: example
View raw schema
apiVersion string
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
kind string
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
metadata object
spec object required
Spec defines the desired state of GCPHTTPFilter.
cachePolicy object
CachePolicy defines the policy with base settings for the cache.
cacheBypassRequestHeaderNames []string
CacheBypassRequestHeaderNames configures headers that bypass the cache.
minItems: 1
maxItems: 5
cacheKeyPolicy object
CacheKeyPolicy defines the components of the cache key.
excludedQueryParameters []string
ExcludedQueryParameters omits specified query parameters from the cache key.
minItems: 1
maxItems: 1024
includeHost boolean
IncludeHost includes the host in the cache key. Defaults to true. This field only applies when the HTTPRoute rule references a backend of kind `Service`.
includeProtocol boolean
IncludeProtocol includes the protocol in the cache key. Defaults to true. This field only applies when the HTTPRoute rule references a backend of kind `Service`.
includeQueryString boolean
IncludeQueryString includes the query string in the cache key. Defaults to true. This field only applies when the HTTPRoute rule references a backend of kind `Service`.
includedCookieNames []string
IncludedCookieNames includes specified cookies in the cache key.
minItems: 1
maxItems: 5
includedHeaderNames []string
IncludedHeaderNames includes specified headers in the cache key.
minItems: 1
maxItems: 15
includedQueryParameters []string
IncludedQueryParameters includes only specified query parameters in the cache key.
minItems: 1
maxItems: 1024
cacheMode string
CacheMode controls how a response is eligible for caching. Defaults to CACHE_ALL_STATIC.
enum: CACHE_ALL_STATIC, USE_ORIGIN_HEADERS, FORCE_CACHE_ALL
clientTTL string
ClientTTL is the maximum time a response can be cached by a client. Defaults to 1h for CACHE_ALL_STATIC and FORCE_CACHE_ALL cacheModes. Cannot be used with USE_ORIGIN_HEADERS cacheMode.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
defaultTTL string
DefaultTTL is the default time a response is kept in the cache. Defaults to 1h for CACHE_ALL_STATIC and FORCE_CACHE_ALL cacheModes. Cannot be used with USE_ORIGIN_HEADERS cacheMode.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
maxTTL string
MaxTTL is the maximum time a response can be cached. Defaults to 24h for CACHE_ALL_STATIC cacheMode. Can be only used with CACHE_ALL_STATIC cacheMode.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
negativeCaching boolean
NegativeCaching enables caching of common errors or redirects.
negativeCachingPolicy []object
NegativeCachingPolicy defines the TTL for specific status codes. Only used if NegativeCaching is true.
minItems: 1
maxItems: 11
code integer required
StatusCode defines the status code for which the ttl will be applied
enum: 300, 301, 302, 307, 308, 404, 405, 410, 421, 451, 501
format: int32
ttl string required
TimeToLive defines the time given status code response is kept before revalidating it.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$
requestCoalescing boolean
RequestCoalescing enables request coalescing. Defaults to true.
serveWhileStale string
ServeWhileStale defines the time the content can be served past the cache entry expiration time. Defaults to 24h.
pattern: ^([0-9]{1,5}(h|m|s|ms)){1,4}$

No matches. Try .spec.cachePolicy for an exact path