Merge pull request #3827 from weaveworks/k8s-node-name

Set hostname to Kubernetes node name
This commit is contained in:
Bryan Boreham
2021-02-06 11:16:11 +00:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

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:

1
scope
View File

@@ -170,6 +170,7 @@ docker_args() {
-v /var/run/docker.sock:/var/run/docker.sock \
-v /sys/kernel/debug:/sys/kernel/debug \
-e CHECKPOINT_DISABLE
# shellcheck disable=SC2039
[ -n "${PLUGINS_DIR_EXISTS:-}" ] && echo -v /var/run/scope/plugins:/var/run/scope/plugins
}