weave-scope

by Das Meta

Helm chartv1.0.4App 1.10.2

A Helm chart for the Weave Scope cluster visualizer.

About this chart

Weave Scope helm chart

Install: helm repo add dasmeta https://dasmeta.github.io/helm then helm upgrade --install my-weave-scope dasmeta/weave-scope -f values.yaml. Public values: values.yaml. Examples: examples/weave-scope/. This chart contains nested subcharts (weave-scope-frontend, weave-scope-agent); deploy together or disable one via values.

Key values

KeyDescriptionDefault / Example
weave-scope-frontend.enabledDeploy frontend subcharttrue
weave-scope-agent.enabledDeploy agent subcharttrue
Subchart image / resourcesPer subchartsee values.yaml

About this chart

This chart contains two subcharts (weave-scope-frontend and weave-scope-agent) which deploy the corresponding components of Weave Scope, an interactive container monitoring and visualization application.

Either subchart can be deployed on its own (set the "enabled" value to "false" for the chart you want to suppress) or the two can be deployed together (the default).

Compatibility notes

  • This chart is designed and tested with Weave Scope 1.6.2 and 1.6.5 and Kubernetes 1.7.
  • Weave Scope 1.6.2 was originally released by WeaveWorks for Kubernetes 1.6 but seems to work fine on 1.7.
  • On Kubernetes 1.6 Weave Scope versions as old as 1.3.0 will probably work.

Prerequisites

  • The service account, cluster role, cluster role binding and service specified in the rendered version of this chart must not already exist.

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release <helm-repo>/weave-scope

$ helm install --name my-release stable/weave-scope The command deploys Weave Scope on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

Note that most of this documentation is repeated in values.yaml; if you're in a hurry you can skip this part here and read it there. Values with no default noted have no default.

Global values

ParameterDescriptionDefault
image.*the parameters of the image pulls for this release
image.repositorythe image that will be used for this release (required)weaveworks/scope
image.tagthe version of Weave Scope desired for this release (required)1.10.1
image.pullPolicythe imagePullPolicy for the container (required): IfNotPresent, Always, or NeverIfNotPresent
service.*the configuration of the service used to access the frontend
service.namethe short name desired for the frontend service (optional, but if not specified by the user a value will be calculated) -- this is a global so we can access its value easily from the agent subchartweave-scope-app
service.portthe port exposed by the Scope frontend service (required if weave-scope-frontend is enabled) -- this is a global so we can access its value easily from the agent subchart80
service.typethe type of the frontend service (required if weave-scope-frontend is enabled): ClusterIP, NodePort or LoadBalancer -- this is a global to keep it with the other values for configuring the frontend serviceClusterIP

Weave Scope frontend values

The weave-scope-frontend section controls how the Scope frontend is installed.

ParameterDescriptionDefault
enabledcontrols whether the frontend is deployedtrue
resources.*controls requests/limits for the frontend (these values are all optional)
resources.requests.cpuCPU request in MHz (m)
resources.requests.memorymemory request in MiB (Mi)
resources.limits.cpuCPU limit in MHz (m)
resources.limits.memorymemory limit in MiB (Mi)

Weave Scope agent

The agent section controls how the Weave Scope node agent pods are installed.

ParameterDescriptionDefault
enabledcontrols whether the agent is deployedtrue
dockerBridgethe name of the Docker bridge interfacedocker0
scopeFrontendAddrthe host:port of a Scope frontend to send data to -- this is only needed in cases where the frontend is deployed separately from the agent (e.g. an install outside the cluster or a pre-existing install inside it)
probeTokenthe token used to connect to Weave Cloud -- this is not needed for connecting to non-cloud Scope frontends
rbac.*controls RBAC resource creation/use
rbac.createwhether RBAC resources should be created (required) -- this must be set to false if RBAC is not enabled in the cluster; it may be set to false in an RBAC-enabled cluster to allow for external management of RBACtrue
readOnlydisables all controls (e.g. start/stop, terminal, logs, etc.)false
serviceAccount.createwhether a new service account name that the agent will use should be created.true
serviceAccount.nameservice account to be used. If not set and serviceAccount.create is true a name is generated using the fullname template.
resources.*controls requests/limits for the agent (these values are all optional)
resources.requests.cpuCPU request in MHz (m)
resources.requests.memorymemory request in MiB (Mi)
resources.limits.cpuCPU limit in MHz (m)
resources.limits.memorymemory limit in MiB (Mi)

Other notes

  • The Deployment for the frontend specifies a single replica; multiple replicas of the frontend, although they may run, probably will not work as expected since different agents may end up talking to different replicas.

Deploy weave-scope with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has weave-scope on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartweave-scope is pinned at v1.0.4 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply