- add Retic repo
- yum install restic
add a Restic credential file to root
vim /root/.restic
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
FROM sentry:9.0-onbuild | |
COPY plugin.py /usr/local/lib/python2.7/site-packages/sentry_plugins/jira/plugin.py |
Clearlinux bundles Kata Containers as well a firecracker.
To quickly experience how Kata Containers can be used to setup a cluster that can run Kubernetes with different types of isolation mechanisms we have created a simple developer enviornment. With this you can run workloads with runc (using cgroups, namespaces provided by the host kernel for isolation), Kata with QEMU/KVM (uses VT-x for isolation and QEMU as the hypervisor) and Kata with Firecracker (uses VT-x for isolation and the minimal Firecracker VMM).
class TimeLimitedPaginator(Paginator): | |
""" | |
Paginator that enforced a timeout on the count operation. | |
When the timeout is reached a "fake" large value is returned instead, | |
Why does this hack exist? On every admin list view, Django issues a | |
COUNT on the full queryset. There is no simple workaround. On big tables, | |
this COUNT is extremely slow and makes things unbearable. This solution | |
is what we came up with. | |
""" |
import asyncio | |
import json | |
import logging | |
import signal | |
import aiohttp | |
import platform | |
from aiohttp import web | |
from datetime import datetime | |
from nats.aio.client import Client as NATS |
[Path] | |
PathChanged=/etc/systemd/network/wg0.network | |
PathChanged=/etc/systemd/network/wg0.netdev | |
[Install] | |
WantedBy=multi-user.target |
image: docker.mydomain.com/build/kube-go-make | |
variables: | |
DOCKER_TAG: docker.mydomain.com/myapp/home:$CI_COMMIT_REF_SLUG | |
DOCKER_HOST: tcp://localhost:2375 | |
DOCKER_DRIVER: overlay | |
PROD_RSYNC_HOST: myprodserver.com | |
DOMAIN: mydomain.com | |
CHART_DIR: chart |
#!/bin/bash | |
modprobe ipv6 | |
modprobe udp_tunnel | |
modprobe ip6_udp_tunnel | |
ip link add dev wg0 type wireguard | |
wg setconf wg0 /etc/wireguard/config | |
wg showconf wg0 | |
brctl addbr internet | |
brctl stp internet on | |
ip link set up dev wg0 |