Set hostname to Kubernetes node name

This will allow the app to match up data from node and cluster probes
This commit is contained in:
Bryan Boreham
2021-01-30 15:08:48 +00:00
parent 9aa9b1ae70
commit cb032b00de

View File

@@ -31,6 +31,11 @@ spec:
- '--probe.docker.bridge=docker0'
- '--probe.docker=true'
- 'weave-scope-app.weave.svc.cluster.local.:80'
env:
- name: SCOPE_HOSTNAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: weaveworks/scope:1.13.1
imagePullPolicy: IfNotPresent
resources: