kubevirt-manager

by christianhuth

Helm chartv0.8.1App 1.5.4Verified publisher

KubeVirt Web UI to manage the lifecycle of Virtual Machines and more

About this chart

kubevirt-manager

KubeVirt Web UI to manage the lifecycle of Virtual Machines and more

TL;DR;

helm repo add christianhuth https://charts.christianhuth.de
helm repo update
helm install my-release christianhuth/kubevirt-manager

Or install it from the OCI registry:

helm install my-release oci://ghcr.io/christianhuth/helm-charts/kubevirt-manager

Introduction

This chart bootstraps the KubeVirt Web UI called KubeVirt Manager 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/kubevirt-manager

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/kubevirt-manager

These commands deploy the KubeVirt Manager 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.

Values

KeyTypeDefaultDescription
affinityobject{}Affinity settings for pod assignment
autoscaling.enabledboolfalseEnable Horizontal POD autoscaling
autoscaling.maxReplicasint100Maximum number of replicas
autoscaling.minReplicasint1Minimum number of replicas
autoscaling.targetCPUUtilizationPercentageint80Target CPU utilization percentage
deploymentStrategyobject{}Update strategy for the deployment
extraEnvlist[]additional environment variables to be added to the pods
fullnameOverridestring""String to fully override "kubevirt-manager.fullname"
image.pullPolicystring"Always"image pull policy
image.registrystring"docker.io"image registory
image.repositorystring"kubevirtmanager/kubevirt-manager"image repository
image.tagstring"1.5.4"Overrides the image tag
imagePullSecretslist[]If defined, uses a Secret to pull an image from a private Docker registry or repository.
ingress.annotationsobject{}Additional annotations for the Ingress resource
ingress.basicAuth.enabledboolfalseenable the configuration of basic authentication with nginx
ingress.basicAuth.existingSecretstring""An existing Secret containing the username and password for basic authentication. Username and password have to be base64 encoded in the form username:password. The Secret needs to contain a key .htpasswd with the base64 encoded authentication information. If set ingress.basicAuth.username and ingress.basicAuth.password will be ignored.
ingress.basicAuth.passwordstring"password"Password for authentication
ingress.basicAuth.usernamestring"admin"Username for authentication
ingress.classNamestring""IngressClass that will be be used to implement the Ingress
ingress.enabledboolfalseEnable ingress record generation
ingress.hostslistsee values.yamlAn array with the hosts configuration
ingress.tlslist[]An array with the tls configuration
nameOverridestring""Provide a name in place of kubevirt-manager
nodeSelectorobject{}Node labels for pod assignment
podAnnotationsobject{}Annotations to be added to exporter pods
podSecurityContextobject{}pod-level security context
prometheus.additionalLabelsobject{}Prometheus ServiceMonitor labels
prometheus.enabledboolfalseEnable a Prometheus ServiceMonitor
prometheus.intervalstring"30s"Prometheus ServiceMonitor interval
prometheus.metricRelabelingslist[]Prometheus [MetricRelabelConfigs] to apply to samples before ingestion
prometheus.namespacestring""Prometheus ServiceMonitor namespace
prometheus.relabelingslist[]Prometheus [RelabelConfigs] to apply to samples before scraping
prometheus.scrapeTimeoutstring""Prometheus ServiceMonitor scrapeTimeout, cannot be longer than the scrape interval
prometheus.selectorobject{}Prometheus ServiceMonitor selector
prometheus.service.namestring""Name of the Prometheus Service
prometheus.service.namespacestring""Namespace of the Prometheus Service
prometheus.service.portstring""Port of the Prometheus Service
replicaCountint1Number of replicas
resourcesobject{}Resource limits and requests for the pods.
revisionHistoryLimitint0The 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{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"readOnlyRootFilesystem":true,"runAsGroup":30000,"runAsNonRoot":true,"runAsUser":10000,"seccompProfile":{"type":"RuntimeDefault"}}container-level security context
service.portint8080Kubernetes 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

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/kubevirt-manager

Deploy kubevirt-manager with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has kubevirt-manager 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 chartkubevirt-manager is pinned at v0.8.1 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