Browse Source

Set deployment resources

- Required for deployment to work.  Default allocations are too low now.

Signed-off-by: Wade Barnes <wade.barnes@shaw.ca>
pull/160/head
Wade Barnes 5 years ago
parent
commit
8aac61bb5a
No known key found for this signature in database GPG Key ID: 8EFD0ACAE2C82CB7
1 changed files with 25 additions and 5 deletions
  1. +25
    -5
      openshift/templates/edivorce-django/edivorce-django-deploy.yaml

+ 25
- 5
openshift/templates/edivorce-django/edivorce-django-deploy.yaml View File

@ -65,7 +65,7 @@ objects:
port: 8080 port: 8080
livenessProbe: livenessProbe:
timeoutSeconds: 3 timeoutSeconds: 3
initialDelaySeconds: 30
initialDelaySeconds: 60
httpGet: httpGet:
path: "/health" path: "/health"
port: 8080 port: 8080
@ -112,7 +112,11 @@ objects:
name: ${NAME} name: ${NAME}
resources: resources:
limits: limits:
memory: "${MEMORY_LIMIT}"
cpu: ${CPU_LIMIT}
memory: ${MEMORY_LIMIT}
requests:
cpu: ${CPU_REQUEST}
memory: ${MEMORY_REQUEST}
- kind: Secret - kind: Secret
apiVersion: v1 apiVersion: v1
metadata: metadata:
@ -197,8 +201,24 @@ parameters:
description: Basic Auth Password. Needs to be basee64 encoded. description: Basic Auth Password. Needs to be basee64 encoded.
generate: expression generate: expression
from: "[a-zA-Z0-9]{16}" from: "[a-zA-Z0-9]{16}"
# ===============================================================================
- name: CPU_REQUEST
displayName: Resources CPU Request
description: The resources CPU request (in cores) for this build.
required: true
value: 10m
- name: CPU_LIMIT
displayName: Resources CPU Limit
description: The resources CPU limit (in cores) for this build.
required: true
value: 500m
- name: MEMORY_REQUEST
displayName: Resources Memory Request
description: The resources Memory request (in Mi, Gi, etc) for this build.
required: true
value: 10Mi
- name: MEMORY_LIMIT - name: MEMORY_LIMIT
displayName: Memory Limit
displayName: Resources Memory Limit
description: The resources Memory limit (in Mi, Gi, etc) for this build.
required: true required: true
description: Maximum amount of memory the Django container can use.
value: 512Mi
value: 512Mi

Loading…
Cancel
Save