Skip to content

Commit

Permalink
Remove Redis and Proxy caching
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Dec 27, 2023
1 parent 0a7262f commit e404b4d
Showing 1 changed file with 7 additions and 31 deletions.
38 changes: 7 additions & 31 deletions .k8s/manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,14 @@ spec:
args:
- "memcached"
- "-m"
- "256"
- "900"
- "-I"
- "64M"
resources:
requests:
memory: 288Mi
memory: 1000Mi
limits:
memory: 288Mi
memory: 1000Mi
ports:
- containerPort: 11211
protocol: TCP
Expand All @@ -129,7 +131,7 @@ metadata:
name: aladhan-com-api
namespace: aladhan-com
annotations:
konghq.com/plugins: rate-limiting-aladhan-api, proxy-cache-redis-aladhan-api
konghq.com/plugins: rate-limiting-aladhan-api
spec:
ports:
- port: 80
Expand All @@ -156,38 +158,12 @@ metadata:
namespace: aladhan-com
config:
second: 24
policy: redis
redis_host: redis-ratelimit-master
redis_port: 6379
policy: cluster
limit_by: ip
plugin: rate-limiting
---
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: proxy-cache-redis-aladhan-api
namespace: aladhan-com
config:
response_code:
- 200
- 400
- 301
request_method:
- GET
- HEAD
content_type:
- application/json
- text/html; charset=UTF-8
- text/hml
cache_ttl: 3600
cache_control: false
storage_ttl: 3600
redis_port: 6379
redis_host: redis-cache-aladhan-master
plugin: proxy-cache-redis
---
apiVersion: configuration.konghq.com/v1
kind: KongPlugin
metadata:
name: bot-detection-aladhan-api
namespace: aladhan-com
Expand Down

0 comments on commit e404b4d

Please sign in to comment.