#49 fix REDIS_URL and EventSource path

This commit is contained in:
Henning Jacobs
2017-01-07 00:26:02 +01:00
parent f35da40687
commit f725d6bbda
3 changed files with 4 additions and 3 deletions

View File

@@ -107,7 +107,7 @@ The following environment variables are supported:
``MOCK``
Set to "true" to mock Kubernetes cluster data.
``REDIS_URL``
Optional Redis server to use for pub/sub events and job locking when running more than one replica.
Optional Redis server to use for pub/sub events and job locking when running more than one replica. Example: ``redis://my-redis:6379``
Supported Browsers

View File

@@ -374,7 +374,8 @@ export default class App {
this.eventSource = null
}
const that = this
let url = '/events'
// NOTE: path must be relative to work with kubectl proxy out of the box
let url = 'events'
const clusterIds = Array.from(this.selectedClusters).join(',')
if (clusterIds) {
url += '?cluster_ids=' + clusterIds

View File

@@ -30,7 +30,7 @@ spec:
timeoutSeconds: 1
env:
- name: REDIS_URL
value: kube-ops-view-redis:6379
value: "redis://kube-ops-view-redis:6379"
resources:
limits:
cpu: 200m