Merge pull request #180 from 1Password/dv/set-resource-requests-and-limits

Set resource requests and limits for application pods
This commit is contained in:
De Ville Weppenaar
2022-04-11 12:14:03 -07:00
committed by GitHub
3 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: op-redis-configmap
data:
# Set the arguments passed to Redis
# - maxmemory configures Redis to use a specified amount of memory for the data set
# - maxmemory-policy is the eviction policy used when the maximum memory is reached
REDIS_ARGS: "--maxmemory 256mb --maxmemory-policy volatile-lru"

View File

@@ -26,6 +26,13 @@ spec:
- name: scimsession
mountPath: "/secret"
readOnly: false
resources:
requests:
cpu: 125m
memory: 256M
limits:
cpu: 250m
memory: 512M
envFrom:
- configMapRef:
name: op-scim-configmap

View File

@@ -18,3 +18,13 @@ spec:
ports:
- containerPort: 6379
name: redis
resources:
requests:
cpu: 125m
memory: 256M
limits:
cpu: 250m
memory: 512M
envFrom:
- configMapRef:
name: op-redis-configmap