zabbix-server-mysql

by Helm

Helm chartv3.0.2App 6.4.0-latest

Zabbix monitoring server

About this chart

Zabbix mysql

Zabbix is a monitoring system.

Zabbix can use postgresql or mysql. This chart implementes the mysql flavor of zabbix.

WARNING!!!

The version 3.0.0 breaks zabbix storage (if you use persistence.thing.enabled=true).

In previous versions a volume by directory was created. Now only is created one volume and each directory in zabbix is a directory in the volume so you need to move all data from each volume to each directory in the new volume.

TL;DR;

$ helm repo add fermosit https://harbor.fermosit.es/chartrepo/library
$ helm upgrade --install fermosit/zabbix-server-mysql

Introduction

This chart bootstraps a Zabbix deployment on a Kubernetes cluster using the Helm package manager.

It also uses the Bitnami MariaDB chart which is required for bootstrapping a MariaDB deployment for the database requirements of the Zabbix application.

Source code: https://github.com/elmanytas/zabbix-kubernetes/zabbix-server-mysql-chart

Report bugs here: https://github.com/elmanytas/zabbix-kubernetes/issues

Prerequisites

  • Kubernetes 1.19+
  • Helm 3.0+
  • PV provisioner support in the underlying infrastructure

Installing the Chart

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

$ helm repo add fermosit https://harbor.fermosit.es/chartrepo/library
$ helm install my-release fermosit/zabbix-server-mysql

The command deploys Zabbix on the Kubernetes cluster in the default configuration. The Parameters 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 zabbix

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

Parameters

The following table lists the configurable parameters of the Zabbix Server chart and their default values.

ParameterDescriptionDefault
image.zabbix_server_mysql.registryZabbix server mysql image registrydocker.io
image.zabbix_server_mysql.repositoryZabbix server image namezabbix/zabbix-server-mysql
image.zabbix_server_mysql.tagZabbix server image tag{TAG_NAME}
image.zabbix_server_mysql.pullPolicyImage pull policyIfNotPresent
image.zabbix_server_mysql.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
image.zabbix_web_nginx_mysql.registryZabbix web mysql image registrydocker.io
image.zabbix_web_nginx_mysql.repositoryZabbix web image namezabbix/zabbix-web-nginx-mysql
image.zabbix_web_nginx_mysql.tagZabbix web image tag{TAG_NAME}
image.zabbix_web_nginx_mysql.pullPolicyImage pull policyIfNotPresent
image.zabbix_web_nginx_mysql.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
image.zabbix_agent.registryZabbix agent image registrydocker.io
image.zabbix_agent.repositoryZabbix agent image namezabbix/zabbix-agent
image.zabbix_agent.tagZabbix agent image tag{TAG_NAME}
image.zabbix_agent.pullPolicyImage pull policyIfNotPresent
image.zabbix_agent.pullSecretsSpecify docker-registry secret names as an array[] (does not add image pull secrets to deployed pods)
nameOverride.Strings to partially override fullname templates with a string (will prepend the release name)nil
fullnameOverride.Strings to fully override fullname templates with a stringnil
replicaCount.zabbix_web_nginx_mysqlNumber of Web Pods to run2
service.zabbix_server_mysql.typeKubernetes Service typeClusterIP
service.zabbix_server_mysql.portService TCP port10051
service.zabbix_web_nginx_mysql.typeKubernetes Service typeClusterIP
service.zabbix_web_nginx_mysql.portService HTTP port80
zabbix_web_nginx.livenessProbe.initialDelaySecondsDelay before liveness probe is initiated20
zabbix_web_nginx.livenessProbe.periodSecondsHow often to perform the probe10
zabbix_web_nginx.livenessProbe.timeoutSecondsWhen the probe times out5
zabbix_web_nginx.livenessProbe.failureThresholdMinimum consecutive failures for the probe6
zabbix_web_nginx.livenessProbe.successThresholdMinimum consecutive successes for the probe1
zabbix_web_nginx.readinessProbe.initialDelaySecondsDelay before readiness probe is initiated10
zabbix_web_nginx.readinessProbe.periodSecondsHow often to perform the probe10
zabbix_web_nginx.readinessProbe.timeoutSecondsWhen the probe times out5
zabbix_web_nginx.readinessProbe.failureThresholdMinimum consecutive failures for the probe6
zabbix_web_nginx.readinessProbe.successThresholdMinimum consecutive successes for the probe1
zabbix_server_mysql.livenessProbe.initialDelaySecondsDelay before liveness probe is initiated60
zabbix_server_mysql.livenessProbe.periodSecondsHow often to perform the probe10
zabbix_server_mysql.livenessProbe.timeoutSecondsWhen the probe times out5
zabbix_server_mysql.livenessProbe.failureThresholdMinimum consecutive failures for the probe6
zabbix_server_mysql.livenessProbe.successThresholdMinimum consecutive successes for the probe1
zabbix_server_mysql.readinessProbe.initialDelaySecondsDelay before readiness probe is initiated10
zabbix_server_mysql.readinessProbe.periodSecondsHow often to perform the probe10
zabbix_server_mysql.readinessProbe.timeoutSecondsWhen the probe times out5
zabbix_server_mysql.readinessProbe.failureThresholdMinimum consecutive failures for the probe6
zabbix_server_mysql.readinessProbe.successThresholdMinimum consecutive successes for the probe1
ingress.enabledEnable ingress controller resourcefalse
ingress.hostnameDefault host for the ingress resourcezabbix.local
ingress.annotationsIngress annotations[]
ingress.tls[0].hosts[0]TLS hostszabbix.local
ingress.tls[0].secretNameTLS Secret (certificates)zabbix.local-tls
ingress.secrets[0].nameTLS Secret Namenil
ingress.secrets[0].certificateTLS Secret Certificatenil
ingress.secrets[0].keyTLS Secret Keynil
schedulerNameName of the alternate schedulernil
persistence.storageClassPVC Storage Classnil (uses alpha storage class annotation)
persistence.enabledEnable persistence using PVCfalse
persistence.accessModePVC Access ModeReadWriteOnce
persistence.sizePVC Storage Request100Mi
persistence.claimNamePVC Storage Namealertscripts
nodeSelectorNode labels for pod assignment{}
tolerationsList of node taints to tolerate[]
affinityMap of node/pod affinities{}
initContainersList of init containers (take a look to examples in values.yaml)[]
podAnnotationsPod annotations

Deploy zabbix-server-mysql with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has zabbix-server-mysql 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 chartzabbix-server-mysql is pinned at v3.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