I did a quick test of the HPA (Horizontal Pod Autoscaling) on OpenShift, here are some key findings: Heapster metric is not near realtime, it is about 2 minutes delay in my test. HPA only has one threshold to decide when to scale up or scale down. I think it makes sense, as pods normally … Continue reading Horizontal Pod Autoscaling
Tag: OpenShift
OpenShift build error: fatal: git fetch-pack: expected shallow list
If you are seeing such error when doing build in OpenShift - 'error: build error: fatal: git fetch-pack: expected shallow list', then you probably have missed the ref in your build configuration, ref can be tag or branch name. spec: triggers: - type: ConfigChange source: type: Git git: uri: 'http://github.com.au/jc1518/dilbert.git' ref: master
Run Hubot on OpenShift
In this article, I will demonstrate how to build a Hubot bot on OpenShift. Four key take-away points. Create secret for git clone Use docker strategy to build if you prefer Dockerfile over S2I Inject environment variables from ConfigMap If needed, you can replace the FROM or CMD that defined in Dockerfile during deployment. In … Continue reading Run Hubot on OpenShift
Autoscaler on OpenShift Dedicated
At the time of writing, OpenShift dedicated (v3.5.5.31) only supports autoscaling based on the CPU metrics. So the first step is to ensure the CPU request is in place. It can be setup in the section of container spec. e.g spec: containers: image: 'poc/web' name: my-web ports: - containerPort: 3000 resources: requests: cpu: 200m limits: … Continue reading Autoscaler on OpenShift Dedicated
Build smart into your docker images
We have been running mysql 5.7 on OpenShift with RedHat provisioned images. To make it work is easy, but to make it work correctly is a bit harder. One example is that how to setup the innodb_buffer_pool_size (one of the most important parameters of mysql)? When you build the image you don't know how much memory the … Continue reading Build smart into your docker images