Adding prometheus rules

2019-05-13 Thread Tim Dudgeon
In the docs for prometheus [1] it states: "OKD Cluster Monitoring ships with the following alerting rules configured by default. Currently you cannot add custom alerting rules." Is the really the case? It's impossible to add new rules so that you can set up custom alerts? Seems a bit crazy?

Re: [React.js] Route returns 404 on page refresh

2019-05-13 Thread Pavel Maslov
Hi Jessica, My application is a static web app (React.js), packaged to a docker image (nginx) [1]. Then I have an Openshift/k8s deployment (+Service) originating from that image. After that I create a Route that exposes the Service to the outside world. So what you are proposing is adding the def

Re: [React.js] Route returns 404 on page refresh

2019-05-13 Thread Jessica Forrester
Your backend file server that is actually serving up your JS files needs to understand what paths are considered your "frontend" and always serve your index.html when it gets requests against any of those paths. This is what the OpenShift console itself does. In the 3.x openshift console it was in

Re: [React.js] Route returns 404 on page refresh

2019-05-13 Thread Pavel Maslov
Anyone? I bet it's a common use-case (Angular, React.js frontend apps), can't be that nobody has had this issue... Regards, Pavel Maslov, MS On Thu, May 9, 2019 at 10:50 AM Pavel Maslov wrote: > Hi all, > > > I have a React.js single-page app deployed to Openshift that uses its own > router (