Skip to content

Instantly share code, notes, and snippets.

NGINX
sudo apt install curl gnupg2 ca-certificates lsb-release
echo "deb http://nginx.org/packages/ubuntu `lsb_release -cs` nginx" \
| sudo tee /etc/apt/sources.list.d/nginx.list
curl -fsSL https://nginx.org/keys/nginx_signing.key | sudo apt-key add -
sudo apt-key fingerprint ABF5BD827BD9BF62
sudo apt update
sudo apt install nginx
#!/bin/bash
set -euox pipefail
IFS=$'\n\t'
MASTER_INTERNAL_IP=$1
WORKER_NAME=$2
WORKER_IP=$3
TMPDIR=$(mktemp -d -t ci-XXXXXXXXXX)
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: pod
name: pod1
spec:
containers:
- args:
@aivarasko
aivarasko / slave.txt
Last active June 17, 2019 16:03
Kubernetes the Hard Way
#!/bin/bash
set -euox pipefail
IFS=$'\n\t'
export NODE_NUMBER=$(hostname | cut -d'-' -f2)
export CIDR="10.244.${NODE_NUMBER}.0/24"
export KUBE_RELEASE=1.14.3
export CRICTL_RELEASE=1.14.0
export CNI_RELEASE=0.8.1
export CNI_VERSION=0.3.1
@aivarasko
aivarasko / master.txt
Last active June 16, 2019 17:27
Kubernetes The Hard Way
#!/bin/bash
set -euox pipefail
IFS=$'\n\t'
curl -L https://pkg.cfssl.org/R1.2/cfssl_linux-amd64 -o cfssl
curl -L https://pkg.cfssl.org/R1.2/cfssljson_linux-amd64 -o cfssljson
curl -L https://pkg.cfssl.org/R1.2/cfssl-certinfo_linux-amd64 -o cfssl-certinfo
chmod +x cfss*
mv cfssl* /usr/local/bin/
cfssl version
test
# -*- coding: utf-8 -*-
# <nbformat>3.0</nbformat>
# <codecell>
import pandas as pd
from pandas import Series
# <codecell>