mirror of
https://github.com/PurpleComputing/scim-examples.git
synced 2026-09-17 09:10:39 +01:00
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:
9
kubernetes/op-redis-config.yaml
Normal file
9
kubernetes/op-redis-config.yaml
Normal 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"
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user