# master
k3s-node-fra1-01 pub_net: eth0:164.92.228.17 priv_net: eth1:10.114.0.97
# workers
k3s-node-fra1-02 pub_net: eth0:142.93.162.154 priv_net: eth1:10.114.0.94
k3s-node-fra1-03 pub_net: eth0:165.22.19.3 priv_net: eth1:10.114.0.95
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| ########## | |
| # | |
| # If you have to convert a single table: set variable DB_TABLE=tablename | |
| # If commenting DB_TABLE, this is a script to convert all tables in the database | |
| # | |
| ########## | |
| DB_DATABASE=dbname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.9" | |
| services: | |
| setup: | |
| image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION} | |
| restart: always | |
| volumes: | |
| - /data/certs:/usr/share/elasticsearch/config/certs | |
| user: "0" | |
| command: > |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| source /etc/environment | |
| DEST_DUMP_PATH="/opt/backups/mysql" | |
| DAYS=3 | |
| DUMP_NAME="$(hostname)_$(date +"%d-%m-%Y_%s")" # Get date in dd-mm-yyyy_s format | |
| S3CMD=$(which s3cmd) | |
| AWS=$(which aws) | |
| AWS_S3_BUCKET="mysql-backups" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Do not run if removal already in progress. | |
| pgrep "docker rm" && exit 0 | |
| # Remove Dead and Exited containers. | |
| docker rm $(docker ps -a | grep "Dead\|Exited" | awk '{print $1}'); true | |
| # It will fail to remove images currently in use. | |
| docker rmi $(docker images -qf dangling=true); true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| source /etc/environment | |
| SNAPSHOT_TIME=$(date +'%Y-%m-%d_%H-%M-%S') | |
| ROTATE_HOURS="24" | |
| LOGFILE=/var/log/zfs.log | |
| ZPOOL_NAME="zp_mysql" | |
| ZFS_DATASET="mysql/data" | |