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
Tag: Kubernetes
Kubernetes as a Service
I still remember that more than two years ago, I spent a couple of days to setup a Kubernetes cluster in vSphere (refer this article ' Install Kubernetes' that I wrote in 2015). During that time not many people understood what container is not mention Kubertnetes, but nowadays everyone in the industry talks about container and … Continue reading Kubernetes as a Service
Kubernetes is the winner
There used to be lots of debates on what is the best container orchestration platform? Is it ECS or Mesos or Nomad or swarm or Kubernetes ? With some moves in the industry recently, I think the answer is obvious now - Kubernetes is the winner! What happened in the past a few weeks? Docker announced 'Adding Kubernetes … Continue reading Kubernetes is the winner
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
