Skip to content

Instantly share code, notes, and snippets.

@egeneralov
egeneralov / gist:6e2e7716f79d16f63142261650e67ce6
Created February 1, 2023 11:11
egeneralov.authorized_keys
cd ~ && mkdir .ssh && chmod 700 .ssh && cd .ssh && curl -s https://github.com/egeneralov.keys >> authorized_keys && chmod 600 authorized_keys
PermitRootLogin without-password
ChallengeResponseAuthentication no
UsePAM yes
X11Forwarding yes
PrintMotd no
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
Port 22
PubkeyAuthentication yes
ListenAddress 0.0.0.0
mkdir -p /opt/etherpad
cd /opt/etherpad
cat << EOF > docker-compose.yaml
version: '3.4'
services:
etherpad:
image: etherpad/etherpad
environment:
variable "zone" {
type = string
default = "ru-central1-a"
}
variable "k8s_nodes" {
type = list(string)
default = [
"k8s-dev-0",
"k8s-dev-1",
#!/bin/bash -xe
for disk in /dev/sd{c,d,e,f}; do
sgdisk \
-og \
-N 1 \
-c 1:"r0" \
-t 1:fd00 \
"${disk}"
done
mdadm --create /dev/md128 --level=0 --raid-devices=4 --name r0 --assume-clean /dev/sd{c,d,e,f}1
#!/bin/bash
BUCKET_NAME=test
mc alias set minio-dev-domain-com https://minio-dev.domain.com/ d37f64f326f191e426c8c9f255e32dee 79884709becc128c3acaac2fc50f2e00
mc alias set minio-prod-domain-com https://minio-prod.domain.com/ d37f64f326f191e426c8c9f255e32dee 79884709becc128c3acaac2fc50f2e00
mkdir -p minio-policy/
for ENV in dev prod; do
-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1 -XshowSettings:vm
diff --git a/cmd/kubeadm/app/cmd/join.go b/cmd/kubeadm/app/cmd/join.go
index 8487bd5aba4..3c8808139a0 100644
--- a/cmd/kubeadm/app/cmd/join.go
+++ b/cmd/kubeadm/app/cmd/join.go
@@ -481,6 +481,13 @@ func (j *joinData) InitCfg() (*kubeadmapi.InitConfiguration, error) {
return nil, err
}
klog.V(1).Infoln("[preflight] Fetching init configuration")
+
+ for _, el := range j.tlsBootstrapCfg.Clusters {
#!/bin/bash -x
apt-get update -q
apt-get install -yq curl sudo gnupg2
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
echo "deb [arch=amd64] https://download.docker.com/linux/debian buster stable" > /etc/apt/sources.list.d/docker.list
apt-get update -q
apt-get install -yq containerd{,.io}