#49 fix REDIS_URL and EventSource path
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user