Skip to content

Instantly share code, notes, and snippets.

@vietanhduong
Last active March 29, 2022 14:14
Show Gist options
  • Save vietanhduong/256f9b91ce3016d291478ccdb6604bbd to your computer and use it in GitHub Desktop.
Save vietanhduong/256f9b91ce3016d291478ccdb6604bbd to your computer and use it in GitHub Desktop.
apiVersion: pilot.kyber.network/v1alpha1
kind: PrivateIngress
metadata:
name: aggregator
spec:
domains:
- aggregator-api.core-cluster.gke.develop.internal
routes:
- name: ''
match:
prefix: ''
path: ''
safeRegex:
regex: ''
caseSensitive: false
headers:
- name: ''
exactMatch: ''
safeRegexMatch:
regex: ''
presentMatch: false
prefixMatch: ''
suffixMatch: ''
containsMatch: ''
stringMatch:
exact: ''
prefix: ''
suffix: ''
safeRegex:
regex: ''
contains: ''
ignoreCase: false
invertMatch: false
queryParameters:
- name: ''
stringMatch:
exact: ''
prefix: ''
suffix: ''
safeRegex:
regex: ''
contains: ''
ignoreCase: false
presentMatch: ''
# grpc: { }
tlsContext:
presented: false
validated: false
route:
# custom for cluster field
service:
name: ''
port: ''
metadataMatch:
filterMetadata: { }
typedFilterMetadata: { }
prefixRewrite: ''
regexRewrite:
pattern:
regex: ''
substitution: ''
hostRewriteLiteral: ''
autoHostRewrite: false
hostRewriteHeader: ''
hostRewritePathRegex:
pattern:
regex: ''
substitution: ''
appendXForwardedHost: ''
timeout: '100s'
idleTimeOut: '100s'
priority: 'DEFAULT'
rateLimits:
selector:
name: example
cors:
allowOriginStringMatch: []
allowMethods: ''
allowHeaders: ''
exposeHeaders: ''
maxAge: ''
allowCredentials: false
filterEnabled:
defaultValue: '100'
runtimeKey: ''
shadowEnabled:
defaultValue: '100'
runtimeKey: ''
maxGrpcTimeOut: '100s'
grpcTimeoutOffset: '100s'
redirect:
httpsRedirect: false
schemeRedirect: ''
hostRedirect: ''
portRedirect: 80
pathRedirect: ''
prefixRewrite: ''
regexRewrite:
pattern:
regex: ''
substitution: ''
responseCode: 'MOVED_PERMANENTLY'
stripQuery: false
directReponse:
status: 200
body:
filename: ''
inlineBytes: ''
inlineString: ''
environmentVariable: ''
metadata: {}
typedPerFilterConfig: { }
requestHeadersToAdd:
- header:
key: ''
value: ''
append: false
requestHeadersToRemove:
- Client-ID
responseHeadersToAdd:
- header:
key: ''
value: ''
append: false
responseHeadersToRemove:
- X-Client-ID
perRequestBufferLimitBytes: 0
rateLimits:
selector:
name: example
requestHeadersToAdd:
- header:
key: ''
value: ''
append: false
requestHeadersToRemove:
- Client-ID
responseHeadersToAdd:
- header:
key: ''
value: ''
append: false
responseHeadersToRemove:
- X-Client-ID
cors:
allowOriginStringMatch: []
allowMethods: ''
allowHeaders: ''
exposeHeaders: ''
maxAge: ''
allowCredentials: false
filterEnabled:
defaultValue: '100'
runtimeKey: ''
shadowEnabled:
defaultValue: '100'
runtimeKey: ''
typedPerFilterConfig: { }
includeRequestAttemptCount: false
includeAttemptCountInResponse: false
perRequestBufferLimitBytes: 0
apiVersion: pilot.kyber.network/v1alpha1
kind: RateLimit
metadata:
name: example
labels:
name: example
spec:
stage: 1
disableKey: ''
actions:
- requestHeaders:
headerName: ''
descriptorKey: ''
skipIfAbsent: true
remoteAddress: ''
genericKey:
descriptorValue: ''
descriptorKey: ''
headerValueMatch:
descriptorValue: ''
expectMatch: false
headers:
- name: ''
exactMatch: ''
safeRegexMatch:
regex: ''
presentMatch: false
prefixMatch: ''
suffixMatch: ''
containsMatch: ''
stringMatch:
exact: ''
prefix: ''
suffix: ''
safeRegex:
regex: ''
contains: ''
ignoreCase: false
invertMatch: false
metadata:
descriptorKey: ''
defaultValue: ''
metadataKey: { }
source: ''
extension:
name: ''
typedConfig: { }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment