k6-operator

by Grafana

Helm chartv4.7.0App 1.7.0

A Helm chart to install the k6-operator

About this chart

k6-operator

A Helm chart to install the k6-operator

Homepage: https://k6.io

Maintainers

NameEmailUrl
yorugac[email protected]

Source Code

Requirements

Kubernetes: >=1.16.0-0

Values

KeyTypeDefaultDescription
affinityobject{}Affinity to be applied on all containers
customAnnotationsobject{}Custom Annotations to be applied on all resources
customLabelsobject{}Custom Label to be applied on all resources
fullnameOverridestring""
global.imageobject{"pullSecrets":[],"registry":""}Global image configuration
global.image.pullSecretslist[]Optional set of global image pull secrets
global.image.registrystring""Global image registry to use if it needs to be overridden for some specific use cases (e.g local registries, custom images, ...)
installCRDsbooltrueInstalls CRDs as part of the release
managerobject{"containerSecurityContext":{},"dnsConfig":{},"dnsPolicy":"","env":[],"envFrom":[],"image":{"pullPolicy":"IfNotPresent","registry":"ghcr.io","repository":"grafana/k6-operator","tag":"controller-v1.7.0"},"livenessProbe":{"httpGet":{"path":"/healthz","port":8081},"initialDelaySeconds":15,"periodSeconds":20},"logging":{"development":true},"podSecurityContext":{},"readinessProbe":{"httpGet":{"path":"/healthz","port":8081},"initialDelaySeconds":5,"periodSeconds":10},"replicas":1,"resources":{"limits":{"cpu":"100m","memory":"100Mi"},"requests":{"cpu":"100m","memory":"50Mi"}},"serviceAccount":{"create":true,"name":"k6-operator-controller"}}controller-manager configuration
manager.containerSecurityContextobject{}A security context defines privileges and access control settings for the container.
manager.dnsConfigobject{}set the dns configuration of controller-manager
manager.dnsPolicystring""set the dns policy of controller-manager
manager.envlist[]List of environment variables to set in the controller
manager.envFromlist[]List of sources to populate environment variables in the controller
manager.imageobject{"pullPolicy":"IfNotPresent","registry":"ghcr.io","repository":"grafana/k6-operator","tag":"controller-v1.7.0"}controller-manager image configuration
manager.image.pullPolicystring"IfNotPresent"pull policy for the image possible values Always, Never, IfNotPresent (default: IfNotPresent)
manager.image.repositorystring"grafana/k6-operator"controller-manager image repository
manager.image.tagstring"controller-v1.7.0"controller-manager image tag
manager.livenessProbeobject{"httpGet":{"path":"/healthz","port":8081},"initialDelaySeconds":15,"periodSeconds":20}Liveness probe in Probe format
manager.livenessProbe.httpGetobject{"path":"/healthz","port":8081}HTTP liveness probe
manager.loggingobject{"development":true}controller-manager logging configuration
manager.logging.developmentbooltrueSet to true to enable development mode logging (human-readable console format). Set to false for production mode logging (JSON format).
manager.podSecurityContextobject{}A security context defines privileges and access control settings for a pod.
manager.readinessProbeobject{"httpGet":{"path":"/healthz","port":8081},"initialDelaySeconds":5,"periodSeconds":10}Readiness probe in Probe format
manager.readinessProbe.httpGetobject{"path":"/healthz","port":8081}HTTP readiness probe
manager.replicasint1number of controller-manager replicas (default: 1)
manager.resourcesobject{"limits":{"cpu":"100m","memory":"100Mi"},"requests":{"cpu":"100m","memory":"50Mi"}}controller-manager Resources definition
manager.resources.limitsobject{"cpu":"100m","memory":"100Mi"}controller-manager Resources limits
manager.resources.limits.cpustring"100m"controller-manager CPU limit (Max)
manager.resources.limits.memorystring"100Mi"controller-manager Memory limit (Max)
manager.resources.requestsobject{"cpu":"100m","memory":"50Mi"}controller-manager Resources requests
manager.resources.requests.cpustring"100m"controller-manager CPU request (Min)
manager.resources.requests.memorystring"50Mi"controller-manager Memory request (Min)
manager.serviceAccount.createbooltruecreate the service account (default: true)
manager.serviceAccount.namestring"k6-operator-controller"kubernetes service account for the k6 manager
metrics.serviceMonitor.enabledboolfalse
metrics.serviceMonitor.honorLabelsboolfalse
metrics.serviceMonitor.intervalstring""
metrics.serviceMonitor.jobLabelstring""
metrics.serviceMonitor.labelsobject{}
metrics.serviceMonitor.metricRelabelingslist[]
metrics.serviceMonitor.namespacestring""
metrics.serviceMonitor.relabelingslist[]
metrics.serviceMonitor.scrapeTimeoutstring""
metrics.serviceMonitor.selectorobject{}
nameOverridestring""
namespaceobject{"create":true}Namespace creation
namespace.createbooltruecreate the namespace (default: true)
nodeSelectorobject{}Node Selector to be applied on all containers
podAnnotationsobject{}Custom Annotations to be applied on all pods
podLabelsobject{}Custom Label to be applied on all pods
rbacobject{"namespaced":false}RBAC configuration
rbac.namespacedboolfalseIf true, does not install cluster RBAC resources
service.annotationsobject{}service custom annotations
service.enabledbooltrueenables the k6-operator service (default: false)
service.labelsobject{}service custom labels
service.portNamestring"https"Name for controller-manager HTTP port
tolerationslist[]Tolerations to be applied on all containers

Deploy k6-operator with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has k6-operator 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 chartk6-operator is pinned at v4.7.0 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