Skip to content

Instantly share code, notes, and snippets.

@afro-coder
Created January 27, 2025 09:30
Show Gist options
  • Save afro-coder/a94fa1f77768480c02931ca605bbf117 to your computer and use it in GitHub Desktop.
Save afro-coder/a94fa1f77768480c02931ca605bbf117 to your computer and use it in GitHub Desktop.
Ratelimit Decoupling in Gloo Edge
grafana:
defaultInstallationEnabled: false
prometheus:
enabled: false
gloo-fed:
glooFedApiserver:
enable: false
enabled: false
redis:
deployment:
resources:
limits:
memory: 200Mi
requests:
cpu: 100m
memory: 200Mi
global:
extensions:
rateLimit:
deployment:
resources:
limits:
memory: 200Mi
requests:
cpu: 100m
memory: 200Mi
extAuth:
envoySidecar: true
standaloneDeployment: false
deployment:
glooAddress: gloo.gloo-system
resources:
limits:
memory: 200Mi
requests:
cpu: 100m
memory: 200Mi
gloo:
discovery:
enabled: false
settings:
disableKubernetesDestinations: true
gateway:
cleanupJob:
resources:
limits:
memory: 100Mi
requests:
cpu: 100m
memory: 100Mi
rolloutJob:
resources:
limits:
memory: 100Mi
requests:
cpu: 100m
memory: 50Mi
certGenJob:
resources:
limits:
memory: 100Mi
requests:
cpu: 100m
memory: 100Mi
gloo:
deployment:
resources:
limits:
memory: 300Mi
requests:
cpu: 100m
memory: 200Mi
gatewayProxies:
gatewayProxy:
disabled: true
podTemplate:
resources:
limits:
memory: 300Mi
requests:
cpu: 100m
memory: 200Mi
gw-1:
podTemplate:
probes: true
resources:
limits:
memory: 300Mi
requests:
cpu: 100m
memory: 200Mi
customReadinessProbe:
tcpSocket:
port: 8082
disableExtauthSidecar: false
namespace: ns-gw-1
disabled: false
disableGeneratedGateways: false
stats:
enabled: true
routePrefixRewrite: /stats/prometheus
serviceMonitorEnabled: false
gatewaySettings:
enabled: true
#accessLoggingService:
# - fileSink:
# path: /dev/stdout
# stringFormat: >
# [%START_TIME%] "%REQ(X-ENVOY-ORIGINAL-METHOD?:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%" %RESPONSE_CODE% %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% "%REQ(X-FORWARDED-FOR)%" "%REQ(USER-AGENT)%" "%REQ(X-REQUEST-ID)%" "%REQ(:AUTHORITY)%" "%UPSTREAM_HOST%"
customHttpGateway:
virtualServiceSelector:
gateway-type: ns1-gw
options:
ratelimitServer:
ratelimitServerRef:
name: ratelimit
namespace: new-namespace
logLevel: info
kind:
deployment:
replicas: 1
service:
type: LoadBalancer
namespace: ns1-gw
httpPort: 8080
httpsPort: 8443
extraAnnotations:
prometheus.io/path: /metrics
prometheus.io/port: "8081"
prometheus.io/scrape: "true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment