kube-ops-view
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
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Affinity settings for pod assignment |
| args | list | [] | |
| deploymentStrategy | object | {} | Update strategy for the deployment |
| externalRedis.existingSecret | string | "" | Name of an existing Secret containing the password. The password must only contain URL-safe characters. |
| externalRedis.existingSecretPasswordKey | string | "password" | Key in the existing Secret containing the password |
| externalRedis.hostname | string | "" | Hostname of an external Redis or Valkey server. Used if valkey.enabled is false. |
| externalRedis.password | string | "" | Password of the user. Ignored if externalRedis.existingSecret is set. Must only contain URL-safe characters. |
| externalRedis.port | int | 6379 | Port of the external server |
| externalRedis.username | string | "" | Name of the user. Leave empty to authenticate with a password only. |
| fullnameOverride | string | "" | String to fully override "kube-ops-view.fullname" |
| image.pullPolicy | string | "Always" | image pull policy |
| image.registry | string | "docker.io" | image registory |
| image.repository | string | "hjacobs/kube-ops-view" | image repository |
| image.tag | string | "23.5.0" | |
| imagePullSecrets | list | [] | If defined, uses a Secret to pull an image from a private Docker registry or repository. |
| ingress.annotations | object | {} | |
| ingress.className | string | "" | |
| ingress.enabled | bool | false | |
| ingress.hosts[0].host | string | "chart-example.local" | |
| ingress.hosts[0].paths[0].path | string | "/" | |
| ingress.hosts[0].paths[0].pathType | string | "ImplementationSpecific" | |
| ingress.tls | list | [] | |
| nameOverride | string | "" | Provide a name in place of kube-ops-view |
| nodeSelector | object | {} | Node labels for pod assignment |
| podAnnotations | object | {} | Annotations to be added to exporter pods |
| replicaCount | int | 1 | Number of replicas |
| resources | object | {} | Resource limits and requests for the controller pods. |
| revisionHistoryLimit | int | 10 | The number of old ReplicaSets to retain |
| route.main.additionalRules | list | [] | Additional custom rules that can be added to the route |
| route.main.annotations | object | {} | Add annotations to the route |
| route.main.apiVersion | string | "gateway.networking.k8s.io/v1" | Set the route apiVersion, e.g. gateway.networking.k8s.io/v1 or gateway.networking.k8s.io/v1alpha2 |
| route.main.enabled | bool | false | Enables or disables the route |
| route.main.filters | list | [] | Filters define the filters that are applied to requests that match this rule. |
| route.main.hostnames | list | [] | Hostnames to be matched |
| route.main.httpsRedirect | bool | false | adds 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.kind | string | "HTTPRoute" | Set the route kind Valid options are GRPCRoute, HTTPRoute, TCPRoute, TLSRoute, UDPRoute |
| route.main.labels | object | {} | Add labels to the route |
| route.main.matches | list | see values.yaml | define conditions used for matching the rule against incoming HTTP requests. |
| route.main.parentRefs | list | [] | Parent references (Gateway) |
| route.main.timeouts | object | {} | defines the timeouts that can be configured for an HTTP request |
| securityContext | object | {"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsNonRoot":true,"runAsUser":1000} | container-level security context |
| service.port | int | 80 | Kubernetes port where service is exposed |
| service.type | string | "ClusterIP" | Kubernetes service type |
| serviceAccount.annotations | object | {} | Annotations to add to the service account |
| serviceAccount.create | bool | true | Specifies whether a service account should be created |
| serviceAccount.name | string | "" | The name of the service account to use. If not set and create is true, a name is generated using the fullname template |
| tolerations | list | [] | Toleration labels for pod assignment |
| valkey.auth.aclUsers | object | {} | ACL users. kube-ops-view authenticates as the user default. |
| valkey.auth.enabled | bool | false | Enable 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.usersExistingSecret | string | "" | Name of an existing Secret containing the passwords of the users (key <user> or aclUsers.<user>.passwordKey) |
| valkey.enabled | bool | false | Enable 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 byvalkey.*with the values of the upstream chart, e.g.redis.enabledis nowvalkey.enabled- an external server can be configured with
externalRedis.*instead of passing--redis-urlviaargs
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartkube-ops-view is pinned at v9.0.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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