Skip to content

Instantly share code, notes, and snippets.

View thebsdbox's full-sized avatar
🐙

Daniel Finneran thebsdbox

🐙
View GitHub Profile
kernel:
image: linuxkit/kernel:5.4.39
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0 console=ttysclp0"
init:
- linuxkit/init:a68f9fa0c1d9dbfc9c23663749a0b7ac510cbe1c
- linuxkit/runc:v0.8
- linuxkit/containerd:a4aa19c608556f7d786852557c36136255220c1f
- linuxkit/ca-certificates:v0.8
onboot:
- name: sysctl
@thebsdbox
thebsdbox / EKS-D kubeadm
Created December 15, 2020 13:30
EKS-D kubeadm
sudo docker pull public.ecr.aws/eks-distro/kubernetes/pause:v1.18.9-eks-1-18-1;\
sudo docker pull public.ecr.aws/eks-distro/coredns/coredns:v1.7.0-eks-1-18-1; \
sudo docker pull public.ecr.aws/eks-distro/etcd-io/etcd:v3.4.14-eks-1-18-1; \
sudo docker tag public.ecr.aws/eks-distro/kubernetes/pause:v1.18.9-eks-1-18-1 public.ecr.aws/eks-distro/kubernetes/pause:3.2; \
sudo docker tag public.ecr.aws/eks-distro/coredns/coredns:v1.7.0-eks-1-18-1 public.ecr.aws/eks-distro/kubernetes/coredns:1.6.7; \
sudo docker tag public.ecr.aws/eks-distro/etcd-io/etcd:v3.4.14-eks-1-18-1 public.ecr.aws/eks-distro/kubernetes/etcd:3.4.3-0; \
sudo kubeadm init --image-repository public.ecr.aws/eks-distro/kubernetes --kubernetes-version v1.18.9-eks-1-18-1
@thebsdbox
thebsdbox / ccm.yaml
Created December 8, 2020 15:43
ccm.yaml
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: packet-cloud-controller-manager
namespace: kube-system
labels:
app: packet-cloud-controller-manager
spec:
replicas: 1
@thebsdbox
thebsdbox / dockercon.sh
Last active May 20, 2020 22:22
Docker Con colour ASCII
#!/bin/bash
# Either run as a standalone, or add to .bash_profile to start on new session
RED=$(tput setaf 1 2>/dev/null)
GREEN=$(tput setaf 2 2>/dev/null)
YELLOW=$(tput setaf 3 2>/dev/null)
BLUE=$(tput setaf 4 2>/dev/null)
PURPLE=$(tput setaf 5 2>/dev/null)
CYAN=$(tput setaf 6 2>/dev/null)
@thebsdbox
thebsdbox / Dockerfile
Created April 28, 2020 22:16
gross Dockerfile
FROM golang:1.14.2-buster
ENV DEBIAN_FRONTEND=noninteractive
RUN echo deb http://ftp.us.debian.org/debian sid main >> /etc/apt/sources.list
RUN apt-get update; apt-get install -y libtool \
cmake \
automake \
autoconf \
make \
ninja-build \
curl \
@thebsdbox
thebsdbox / Drupal.yaml
Last active March 10, 2020 16:32
Drupal manifest
apiVersion: v1
kind: PersistentVolume
metadata:
name: local-volume-1
labels:
type: local
spec:
capacity:
storage: 10Gi
accessModes:
#!/bin/sh
CLUSTERS=250
MACHINES=5
echo "About to build a configuration for $CLUSTERS deployed clusters with $MACHINES each and written to the file $1"
sleep 5
for i in $( seq $CLUSTERS ); do
# Details for building the repository
PROVIDER=cluster-api-provider-plunder
mkdir $PROVIDER
cd $PROVIDER
echo Create the initial repository for $PROVIDER
git init
echo Initialise a basic layout
GO111MODULE=on /usr/local/kubebuilder/bin/kubebuilder init --domain cluster.x-k8s.io --license apache2 --owner "The Kubernetes Authors"
#!/bin/bash
echo "Beggining build of offline Kubernetes packages"
echo "Adding Kubernetes repository for image pull"
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb https://apt.kubernetes.io/ kubernetes-xenial main
EOF
@thebsdbox
thebsdbox / gist:29e395299f89b52214b66269f5b33f7d
Created February 22, 2017 10:58
Hello Docker World in 69 bytes
BITS 32
org 0x05000000
db 0x7F, "ELF"
dd 1
dd 0
dd $$
dw 2
dw 3
dd 0x0500001B