kube-ops-view

by christianhuth

Helm chartv9.0.2App 23.5.0Verified publisher

A Helm chart for bootstrapping kube-ops-view.

About this chart

kube-ops-view

A Helm chart for bootstrapping kube-ops-view.

TL;DR;

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/kube-ops-view

Or install it from the OCI registry:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/kube-ops-view

Introduction

Kubernetes Operational View - read-only system dashboard for multiple K8s clusters

This chart bootstraps the Kubernetes Operational View on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.19+

Installing the Chart

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

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/kube-ops-view

The chart is also published as an OCI artifact which can be installed like this:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/kube-ops-view

These commands deploy kube-ops-view on the Kubernetes cluster in the default configuration. The Values section lists the values that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall the my-release deployment:

helm uninstall my-release

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

Configuring Redis

kube-ops-view only needs a Redis-compatible server for pub/sub and job locking if it runs with more than one replica (replicaCount). Otherwise it keeps its state in memory.

Bundled Valkey

replicaCount: 2

valkey:
  enabled: true

This deploys a standalone Valkey instance with the official chart valkey/valkey. No operator or other prerequisite is required. All its settings are available under valkey.*, see the values of the upstream chart.

Bundled Valkey with authentication

Create a Secret containing the password of the user default, which kube-ops-view authenticates as:

kubectl create secret generic kube-ops-view-valkey \
  --from-literal=password='<password>'

Reference the Secret in your values:

valkey:
  enabled: true
  auth:
    enabled: true
    usersExistingSecret: kube-ops-view-valkey
    aclUsers:
      default:
        permissions: "~* &* +@all"
        passwordKey: password

kube-ops-view receives the password as part of its Redis URL, so it must only contain URL-safe characters (A-Z, a-z, 0-9, -, ., _, ~). Note that kube-ops-view logs the Redis URL including the password on startup.

External Redis or Valkey

replicaCount: 2

externalRedis:
  hostname: redis.example.com
  port: 6379
  existingSecret: kube-ops-view-redis
  existingSecretPasswordKey: password

Leave existingSecret and password empty if the server does not require authentication, and set username if kube-ops-view should authenticate as an ACL user other than default.

Values

KeyTypeDefaultDescription
affinityobject{}Affinity settings for pod assignment
argslist[]
deploymentStrategyobject{}Update strategy for the deployment
externalRedis.existingSecretstring""Name of an existing Secret containing the password. The password must only contain URL-safe characters.
externalRedis.existingSecretPasswordKeystring"password"Key in the existing Secret containing the password
externalRedis.hostnamestring""Hostname of an external Redis or Valkey server. Used if valkey.enabled is false.
externalRedis.passwordstring""Password of the user. Ignored if externalRedis.existingSecret is set. Must only contain URL-safe characters.
externalRedis.portint6379Port of the external server
externalRedis.usernamestring""Name of the user. Leave empty to authenticate with a password only.
fullnameOverridestring""String to fully override "kube-ops-view.fullname"
image.pullPolicystring"Always"image pull policy
image.registrystring"docker.io"image registory
image.repositorystring"hjacobs/kube-ops-view"image repository
image.tagstring"23.5.0"
imagePullSecretslist[]If defined, uses a Secret to pull an image from a private Docker registry or repository.
ingress.annotationsobject{}
ingress.classNamestring""
ingress.enabledboolfalse
ingress.hosts[0].hoststring"chart-example.local"
ingress.hosts[0].paths[0].pathstring"/"
ingress.hosts[0].paths[0].pathTypestring"ImplementationSpecific"
ingress.tlslist[]
nameOverridestring""Provide a name in place of kube-ops-view
nodeSelectorobject{}Node labels for pod assignment
podAnnotationsobject{}Annotations to be added to exporter pods
replicaCountint1Number of replicas
resourcesobject{}Resource limits and requests for the controller pods.
revisionHistoryLimitint10The number of old ReplicaSets to retain
route.main.additionalRuleslist[]Additional custom rules that can be added to the route
route.main.annotationsobject{}Add annotations to the route
route.main.apiVersionstring"gateway.networking.k8s.io/v1"Set the route apiVersion, e.g. gateway.networking.k8s.io/v1 or gateway.networking.k8s.io/v1alpha2
route.main.enabledboolfalseEnables or disables the route
route.main.filterslist[]Filters define the filters that are applied to requests that match this rule.
route.main.hostnameslist[]Hostnames to be matched
route.main.httpsRedirectboolfalseadds a filter for redirecting to https (HTTP 301 Moved Permanently). To redirect HTTP traffic to HTTPS, you need to have a Gateway with both HTTP and HTTPS listeners. Matches and filters do not take effect if enabled. Ref. https://gateway-api.sigs.k8s.io/guides/http-redirect-rewrite/
route.main.kindstring"HTTPRoute"Set the route kind Valid options are GRPCRoute, HTTPRoute, TCPRoute, TLSRoute, UDPRoute
route.main.labelsobject{}Add labels to the route
route.main.matcheslistsee values.yamldefine conditions used for matching the rule against incoming HTTP requests.
route.main.parentRefslist[]Parent references (Gateway)
route.main.timeoutsobject{}defines the timeouts that can be configured for an HTTP request
securityContextobject{"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":1000}container-level security context
service.portint80Kubernetes port where service is exposed
service.typestring"ClusterIP"Kubernetes service type
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
tolerationslist[]Toleration labels for pod assignment
valkey.auth.aclUsersobject{}ACL users. kube-ops-view authenticates as the user default.
valkey.auth.enabledboolfalseEnable password authentication. Requires the user default in valkey.auth.aclUsers. Note that kube-ops-view logs the Redis URL including the password on startup.
valkey.auth.usersExistingSecretstring""Name of an existing Secret containing the passwords of the users (key <user> or aclUsers.<user>.passwordKey)
valkey.enabledboolfalseEnable a Valkey instance (official chart valkey/valkey) used by kube-ops-view for pub/sub and job locking. Required if replicaCount is greater than 1.

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

helm install my-release -f values.yaml christianhuth/kube-ops-view

Upgrading the Chart

To 9.0.0

This major replaces the Bitnami Redis subchart with the official Valkey chart valkey/valkey. Valkey is a fork of Redis and fully compatible with kube-ops-view. The values changed as follows:

  • redis.* is replaced by valkey.* with the values of the upstream chart, e.g. redis.enabled is now valkey.enabled
  • an external server can be configured with externalRedis.* instead of passing --redis-url via args

kube-ops-view only uses Redis for pub/sub and job locking, so no data has to be migrated. The new Valkey instance starts empty.

To 7.0.0

This major updates the Redis subchart to its newest major, 24.1.0. Here you can find more information about the changes introduced in that version.

To 6.0.0

This major updates the Redis subchart to its newest major, 22.0.0. Here and here you can find more information about the changes introduced in that version.

To 5.0.0

This major updates the Redis subchart to its newest major, 21.2.0. Here and here you can find more information about the changes introduced in that version.

4.0.0

This major updates the Redis subchart to its newest major, 20.6.4. Here you can find more information about the changes introduced in that version.

3.0.0

This major updates the redis subchart to its newest major, 18.0.4. Here you can find more information about the changes introduced in that version.

Deploy kube-ops-view with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kube-ops-view 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 chartkube-ops-view is pinned at v9.0.2 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