Files
2026-08-18 09:40:08 +02:00
..
2026-08-18 09:40:08 +02:00
2026-08-18 09:40:08 +02:00
2026-08-18 09:40:08 +02:00
2026-08-18 09:40:08 +02:00
2026-08-18 09:40:08 +02:00
2026-08-18 09:40:08 +02:00
2026-08-18 09:40:08 +02:00
2026-08-18 09:40:08 +02:00

KUBE 7.1.563

Bash script for deploying/backups and restore SODEW infrastructures.

Warning

Documentation is outdated

Install HELM

curl -fsSL https://get.helm.sh/helm-v3.16.2-linux-amd64.tar.gz | tar -xz
sudo mv linux-amd64/helm /usr/local/bin/helm

helm version

Getting started

Before you start, you must create a configuration file:

cp config.sh.default config.sh

and make the necessary changes.

If necessary, you can set your own password values for MariaDB, Redis, rSync, OpenLiteSpeed ... This can be done by specifying values for the corresponding variables or by writing values to the corresponding files in the data directory. If there are no files, just run the script without parameters. The files with passwords will be created automatically. After that you can make the appropriate edits.

Usage

The script requires elevated permissions to work (sudoers group).

Scheme open ports

flowchart LR;
    subgraph MD[MariaDB replica]
        MDM[mariadb-master-0]
        MDS[mariadb-slave-0]
    end
    subgraph RD[Redis cluster]
        RD0[redis-0]
        RD1[redis-1]
        RD2[redis-2]
        RS0[redis-sentinel-0]
        RS1[redis-sentinel-1]
        RS2[redis-sentinel-2]
    end
    subgraph OLS[OpenLiteSpeed]
        OL1[openlitespeed-0]
        OL2[openlitespeed-1]
    end
    PTF[postfix-xxxxxxxxx-xxxxx]

    MDM <==> MDS
    RD0 <==> RD1 <==> RD2 <==> RD0
    RS0 <==> RS1 <==> RS2 <==> RS0

    P3306([3306])
    P3306 --mysql--> MD

    P6379([6379])
    P26379([26379])
    P6379 & P26379 --redis--> RD

    P80([80/443])
    P80 --http/https--> OLS

    P7080([7080/31080])
    P7080 --admin panel--> OLS

    P25([25])
    P587([587])
    P25 --smtp--> PTF
    P587 --smtp=tls--> PTF

Scheme use ports

%%graph LR;
flowchart LR;
  subgraph K3S[Server]
    MD[MariaDB]
    RD[Redis]

    PTF[Postfix]
    subgraph OLS[OpenLiteSpeed]
      WP[Sites on Wordpress]
      ADM[Admin Panel]
    end
  end
  NET[Internet]

  NET --80,443--> WP
  NET --31080--> ADM
  NET --25--> PTF
  
  WP --3306--> MD
  WP --6379--> RD
  WP --587--> PTF