Ad Widget

Collapse

How to deploy zabbix on kubernetes with database replication

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mfuk
    Junior Member
    • Jul 2023
    • 16

    #1

    How to deploy zabbix on kubernetes with database replication

    HI morning,
    I'm trying to deploy zabbix on kubernetes.
    I'm using official containers (https://github.com/zabbix/zabbix), but I don't understand, how can create database replication.
    I would deploy zabbix cluster with 3 zabbix servers (zabbix-server-0, zabbix-server1, zabbix-server-2) instances and each instances read/write from database a specific database pod, for example:

    zabbix-server-0 -> zabbix-mysql-0
    zabbix-server-1 -> zabbix-mysql-1
    zabbix-server-2 -> zabbix-mysql-2

    How can deploy it?
    Thanks for the help
    Last edited by mfuk; 28-04-2025, 15:40.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    You want 3 server, you insstall 3 srvers... and 3 DB-s... There cannot be any replication between multiple working instances...

    Comment


    • mfuk
      mfuk commented
      Editing a comment
      thanks for the reply.
      Sorry I would create a zabbix cluster wirh 3 nodes, but how can replicate the db?
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #3
    OK.. HA setup with 3 zabbix nodes.. that will work.
    But for DB, you need to look up some additional tools, which manage HA DB and its replication. pg_auto_failover, patroni... there are probably some more... And then you want to make it even more complicated with adding a container layer..
    Setting up DB engine is not part of Zabbix installation. Zabbix provides scripts and instructions, how to create tables etc... but how you set up your DB engine, as HA or not, is up to you...

    Comment


    • mfuk
      mfuk commented
      Editing a comment
      Thanks for your reply.
      That's why I posted it in the forum to ask other users how they solved it.
Working...