Skip to content

Commit

Permalink
fix deployment template - set resource values (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
dagbay-rh authored Mar 6, 2024
1 parent 4bbd2e5 commit dfa3b7f
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions deployment/clowdapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ objects:
- mountPath: /bundles
name: default-entitlements-config
inheritEnv: true
resources:
limits:
cpu: ${CPU_LIMIT}
memory: ${MEMORY_LIMIT}
requests:
cpu: ${CPU_REQUESTS}
memory: ${MEMORY_REQUESTS}
minReadySeconds: 15
progressDeadlineSeconds: 600
image: quay.io/cloudservices/entitlements-api-go:${IMAGE_TAG}
Expand All @@ -66,13 +73,13 @@ objects:
port: 8000
initialDelaySeconds: 30
timeoutSeconds: 60
resources:
limits:
cpu: ${CPU_LIMIT}
memory: ${MEMORY_LIMIT}
requests:
cpu: ${CPU_REQUESTS}
memory: ${MEMORY_REQUESTS}
resources:
limits:
cpu: ${CPU_LIMIT}
memory: ${MEMORY_LIMIT}
requests:
cpu: ${CPU_REQUESTS}
memory: ${MEMORY_REQUESTS}
volumeMounts:
- mountPath: /bundles
name: default-entitlements-config
Expand Down Expand Up @@ -164,16 +171,16 @@ parameters:
value: info
- description: cpu limit for service
name: CPU_LIMIT
value: 500m
- description: cpu limit for service
value: 1000m
- description: memory limit for service
name: MEMORY_LIMIT
value: 500Mi
- description: cpu limit for service
value: 1024Mi
- description: requested cpu for service
name: CPU_REQUESTS
value: 100m
- description: cpu limit for service
value: 250m
- description: requested memory for service
name: MEMORY_REQUESTS
value: 250Mi
value: 512Mi
- description: Port for listener
name: PORT
value: '8000'
Expand Down

0 comments on commit dfa3b7f

Please sign in to comment.