Monitoring OpenShift pod restarts with Prometheus/AlertManager and kube-state-metrics

Prometheus is started to be the emerging solution to monitor OpenShift. We won’t discuss in this article how to set up Prometheus for OpenShift, because some articles already exist about this topic. You can check this git repository how to install it Prometheus on OpenShift with Grafana dashboards and Alert Manager enabled on how toContinue reading Monitoring OpenShift pod restarts with Prometheus/AlertManager and kube-state-metrics

Run sshd and openshift-router on the same port using HAProxy on CentOS7

TL;DHTTW (Don’t Have Time To Write 🙂 ) Remove firewalls and only use iptables, because there are non trivial interactions that makes stuff complicated: sudo systemctl stop firewalld && sudo systemctl start iptables; sudo systemctl start ip6tables oc cluster up –image=registry.access.redhat.com/openshift3/ose –version=v3.3 –metrics –routing-suffix=paas.mycompany.com –public-hostname= paas.mycompany.com –use-existing-config Change router default port: oc env dc/router ROUTER_SERVICE_HTTPS_PORT=9443Continue reading Run sshd and openshift-router on the same port using HAProxy on CentOS7

Improve your build speed: Run a proxy in OpenShift

Many build processes uses external source code or library repositories only available in the internet. That is the case for NPM (Node Package Manager, used for NodeJS applications compilation) or Maven (when building Java applications). Thus running an HTTP Proxy inside of OpenShift could be helpful in many cases: – in a corporate environment itContinue reading Improve your build speed: Run a proxy in OpenShift

OpenShift 3 cheatsheet

Here are a few useful commands that you may very often use on OpenShift 3. Mark a node as non schedulable: Useful once you’ve created OpenShift router and registry to avoid any other scheduling on these nodes: oadm manage-node node1.example.com –schedulable=false Deploy OpenShift integrated docker registry: oadm registry –config=/etc/openshift/master/admin.kubeconfig \ –credentials=/etc/openshift/master/openshift-registry.kubeconfig \ –images=’registry.access.redhat.com/openshift3/ose-${component}:${version}’ Deploy anContinue reading OpenShift 3 cheatsheet

Adding/setting insecure-registry to docker machine afterwards

Running docker on non-Linux based environment became very convenient and easy with docker-machine which is the successor of docker-boot. Basically, docker-machine allows you to manage multiple virtual machines running Linux to host your docker installation and then allows you to run your containers. More than a fantastic tool for OSX and Windows, it is alsoContinue reading Adding/setting insecure-registry to docker machine afterwards