This file contains hidden or 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
#!/usr/bin env bash | |
# | |
# | |
# I didn't run exactly this, but something very similar. | |
# | |
# | |
mkdir -p /etc/certs/vault | |
pushd /etc/certs/vault | |
cat << EOF > ca-config.json |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -euo pipefail | |
set -x | |
SUBS="$(az account list --query [].id -o tsv)" | |
echo "$SUBS" | while read SUB; do | |
az account set -s "$SUB" | |
az aks list --query [].id -o tsv | |
done |
This file contains hidden or 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
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: nginx | |
--- | |
apiVersion: rbac.authorization.k8s.io/v1 | |
kind: Role | |
metadata: | |
name: nginx-service-account |
This file contains hidden or 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
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: couchbase | |
name: couchbase | |
spec: | |
replicas: 1 | |
selector: |
This file contains hidden or 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
wget https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init | |
chmod +x rustup-init | |
./rustup-init -y -t x86_64-unknown-linux-gnu x86_64-unknown-linux-musl | |
echo "export PATH=\"/home/$(whoami)/.cargo/bin:$PATH\"" > "/home/$(whoami)/.bashrc" | |
export PATH="/home/$(whoami)/.cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin" | |
echo $PATH > "$(whoami)/.path" | |
rustup install stable | |
cargo install just --target x86_64-unknown-linux-gnu |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -euo pipefail | |
echo "setting up" | |
WORKDIR="${1:-$(mktemp -d)}" | |
echo "setting up ${WORKDIR}" | |
pushd "$WORKDIR" | |
sudo apt update -y && sudo apt install -y apt-transport-https curl gnupg make gcc < /dev/null |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -euo pipefail | |
kubectl apply -f rc.yaml | |
kubecyl apply -f nginx-kata.yaml |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -euo pipefail | |
#mdadm --stop /dev/md* || true | |
#umount /dev/md* || true | |
export DEBIAN_FRONTEND=noninteractive | |
apt-get update | |
apt-get -o Dpkg::Options::="--force-confold" upgrade -q -y | |
apt-get -o Dpkg::Options::="--force-confold" dist-upgrade -q -y |
This file contains hidden or 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
apiVersion: apps/v1 | |
kind: DaemonSet | |
metadata: | |
name: &name nsenter | |
labels: | |
app: *name | |
spec: | |
selector: | |
matchLabels: | |
app: *name |
This file contains hidden or 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
#!/usr/bin/env bash | |
set -x | |
NODE_INDEX=$(hostname | tail -c 2) | |
NODE_NAME=$(hostname) | |
TENANT_ID={{GetVariable "tenantID"}} | |
KUBERNETES_VERSION={{GetParameter "kubernetesVersion"}} | |
KUBE_BINARY_URL={{GetParameter "kubeBinaryURL"}} | |
KUBEPROXY_URL={{GetParameter "kubeProxySpec"}} | |
APISERVER_PUBLIC_KEY={{GetParameter "apiServerCertificate"}} | |
SUBSCRIPTION_ID={{GetVariable "subscriptionId"}} |