This file contains 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
cd ~ && mkdir .ssh && chmod 700 .ssh && cd .ssh && curl -s https://github.com/egeneralov.keys >> authorized_keys && chmod 600 authorized_keys |
This file contains 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
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 |
This file contains 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
mkdir -p /opt/etherpad | |
cd /opt/etherpad | |
cat << EOF > docker-compose.yaml | |
version: '3.4' | |
services: | |
etherpad: | |
image: etherpad/etherpad | |
environment: |
This file contains 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
variable "zone" { | |
type = string | |
default = "ru-central1-a" | |
} | |
variable "k8s_nodes" { | |
type = list(string) | |
default = [ | |
"k8s-dev-0", | |
"k8s-dev-1", |
This file contains 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 -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 |
This file contains 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 | |
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 |
This file contains 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
-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAMFraction=1 -XshowSettings:vm |
This file contains 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
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 { |
This file contains 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 -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} |
NewerOlder