diff --git a/examples/k8s/ds.yaml b/examples/k8s/ds.yaml index 0193db69c1..6401da6748 100644 --- a/examples/k8s/ds.yaml +++ b/examples/k8s/ds.yaml @@ -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: diff --git a/scope b/scope index 8295c06a1d..96c52d269d 100755 --- a/scope +++ b/scope @@ -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 }