$ sudo cp [email protected] /etc/systemd/system
$ sudo systemctl daemon-reload
$ sudo systemctl enable docker-compose@mongodb
$ sudo systemctl start docker-compose@mongodb
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: mindbox | |
namespace: mindbox | |
spec: | |
# 4 пода, которые справляются с нагрузкой | |
replicas: 4 | |
# 5-10 секунд на инцициализацию | |
minReadySeconds: 10 |
$ sudo cp [email protected] /etc/systemd/system
$ sudo systemctl daemon-reload
$ sudo systemctl enable docker-compose@mongodb
$ sudo systemctl start docker-compose@mongodb
--- | |
- name: Add proxmox gpg key | |
apt_key: | |
url: http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg | |
state: present | |
- name: Add proxmox repository | |
lineinfile: | |
path: /etc/apt/sources.list | |
line: deb http://download.proxmox.com/debian/pve buster pve-no-subscription |
#!/bin/bash | |
# System-wide crontab file and cron job directory. Change these for your system. | |
CRONTAB='/etc/crontab' | |
ANACRONTAB='/etc/anacrontab' | |
CRONDIR='/etc/cron.d' | |
# Single tab character. Annoyingly necessary. | |
tab=$(echo -en "\t") |
#!/bin/bash | |
function valid_ip() | |
{ | |
local ip=$1 | |
local stat=1 | |
if [[ $ip =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then | |
IFS='.' read -ra ip <<< "$ip" | |
[[ ${ip[0]} -le 255 && ${ip[1]} -le 255 \ |
#!/bin/sh | |
# Remount all filesystems read-only | |
echo "sync disks." | |
echo s > /proc/sysrq-trigger | |
sleep 2 | |
echo "remount all read-only." |
#!/bin/sh | |
if test -h "$1" | |
then | |
disk=$(chase "$1") | |
else | |
disk="$1" | |
fi | |
if test -b "$disk" |
[local]Redback# washoutthewash | |
[CUSTOMER_1194]Redback# show sub act | |
[email protected] | |
Session state Up | |
Circuit 14/1:1 vpi-vci 1 928 | |
Internal Circuit 14/1:1:63/1/2/1407 | |
Interface bound pppoe | |
Current port-limit 1 | |
ppp mtu 1508 (applied) |