From 83cb0b57a133a8cd5b42188dd77380ea44fac93b Mon Sep 17 00:00:00 2001 From: Greg Turner Date: Wed, 7 Jun 2017 12:34:09 -0700 Subject: [PATCH] added better openshift instructions --- openshift/README.md | 24 ++++++++++++++++-------- openshift/templates/deploy.config.yaml | Bin 4174 -> 0 bytes 2 files changed, 16 insertions(+), 8 deletions(-) delete mode 100644 openshift/templates/deploy.config.yaml diff --git a/openshift/README.md b/openshift/README.md index 89319c1..2029286 100644 --- a/openshift/README.md +++ b/openshift/README.md @@ -1,10 +1,20 @@ -# Deploy to OpenShift +# OpenShift -## Runtime Setup -TBD +## Build Setup -## Deployment -TBD +Build using the stock NodeJS 4.x image on OpenShift. Simply `Add to Project` and point it +to the latest release version number NOT the head of master. For example, `Source ref: v4`. + +## Deployment Setup +After some experimenting the optimal deployment profile for this service is: + +``` +2 pods or autoscaler 2-4 pods set to 70% CPU trigger +CPU Request: 5 millicores +CPU Limit: 1 core +Memory Request: 100 MiB +Memory Limit: 1 GiB (although we never hit this limit in our testing) +``` ### Change Propagation To promote runtime image from one environment to another, for example from *dev* to *test*, run @@ -14,7 +24,5 @@ oc tag /mygovbc-captcha-service:latest /mygovbc-captcha-service:latest and \/mygovbc-captcha-service:test is to use \/mygovbc-captcha-service:test as backup such that in case the image stream \/mygovbc-captcha-service, which is used by *test* runtime pods, is deleted inadvertently, it can be recovered from \/mygovbc-captcha-service:test. -The command can be setup as a Jenkins task to faciliate using Jenkins to orchestrate deployment of entire application. +The command can be setup as a Jenkins task to facilitate using Jenkins to orchestrate deployment of entire application. -## Tips -To find source code commit point of a runtime instance on OpenShift, open a terminal on one of the running pods and run command `git rev-parse HEAD` in cwd. diff --git a/openshift/templates/deploy.config.yaml b/openshift/templates/deploy.config.yaml deleted file mode 100644 index 5b5d09e8752a177aedfac38bf69b69f1b6fa8c1d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 4174 zcmchaTTk0S5QX=-QvXAQRP`z4(t;}9Xi5<(mnfm2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