Skip to content

Instantly share code, notes, and snippets.

View detiber's full-sized avatar
🐢
Cuddling all the Koobs

Jason DeTiberus detiber

🐢
Cuddling all the Koobs
View GitHub Profile
@detiber
detiber / README.md
Last active February 12, 2024 00:31
CAPT/Tink/image-builder

Tinkerbell w/ image-builder on Vagrant (WIP):

Prerequisites

  • Only currently runs on Linux w/ Vagrant/Libvirt
  • tilt
  • kind
  • checkout image builder to...
  • checkout sandbox to...
  • checkout cluster-api to ...
@detiber
detiber / FUTURE.md
Last active December 8, 2023 07:34
HA kubeadm Cluster - Stacked Control Plane

Thoughts on future Kubeadm work required to streamline experience

Currently the kubeadm config and workflow is centered around a single control plane node and any number of worker nodes. This requires additional workarounds when trying to bootstrap and manage clusters with an HA control plane. I believe there is a path forward that would help streamline the effort required to stand up a fully managed HA control plane including etcd.

  • Etcd Config Changes
    • Modify the local etcd config to have an additional parameter for exposing etcd ports or to expose the ports by default
    • Add a attribute to override the exposed advertised ip, preferably by choosing an interface to use for detection
  • Make API Server Load Balancer config more explicit instead of just overriding the api config
    • Add new attribute to specify a load balancer, which will implicitly set the api config if not explicitly set
  • Control Plane join/extend workflow
@detiber
detiber / README.md
Last active April 16, 2023 02:21
Using CFSSL as an external CA for kubeadm

CFSSL as an external CA for non-ha kubeadm intialized clusters

Using cfssl to Create an External CA Infrastructure

Install cfssl

# This requires an existing Go environment with GOPATH set
go get -u github.com/cloudflare/cfssl/cmd/...
@detiber
detiber / README.md
Last active October 10, 2021 22:51

Tinkerbell w/ image-builder on Physical Hardware (WIP):

Prerequisites

  • Bridged gateway with dhcp disabled, configured with a static ip of 192.168.1.254/24
  • Base ubuntu 20.04 release, configured with a static ip of 192.168.1.1/24

Install docker and docker-compose

@detiber
detiber / README.md
Last active March 19, 2021 17:44
tink

Tink

Prerequisites

  • Bridged gateway with dhcp disabled, configured with a static ip of 192.168.1.254/24
  • Base ubuntu 20.04 release, configured with a static ip of 192.168.1.5/24

Install docker and docker-compose

modprobe nbd
qemu-nbd --connect=/dev/nbd0 ./focal-server-cloudimg-amd64.img
partprobe /dev/nbd0
mkdir /mnt/image
mount /dev/nbd0p1 /mnt/image
cd /mnt/image
mount -t proc /proc proc/
mount --rbind /sys sys/
mount --rbind /dev dev/
@detiber
detiber / rhcos.ipxe
Last active November 11, 2020 21:22 — forked from displague/rhcos.ipxe
#!ipxe
dhcp net0
kernel http://mirror.openshift.com/pub/openshift-v4/x86_64/dependencies/rhcos/4.6/4.6.1/rhcos-live-kernel-x86_64 console=ttyS1,115200n8 coreos.live.rootfs_url=http://mirror.openshift.com/pub/openshift-v4/x86_64/dependencies/rhcos/4.6/4.6.1/rhcos-live-rootfs.x86_64.img coreos.inst.install_dev=/dev/sda rd.net.timeout.carrier=30 coreos.inst.platform_id=packet coreos.inst.persistent-kargs="console=ttyS1,115200n8"
initrd http://mirror.openshift.com/pub/openshift-v4/x86_64/dependencies/rhcos/4.6/4.6.1/rhcos-live-initramfs.x86_64.img
boot
@detiber
detiber / README.md
Last active September 4, 2020 13:23
Arrgh SNAT

SNAT issue reproducer

Prerequisites

  • kind (v0.8.0+, Tested with v0.8.1)
  • kubectl
  • helm (v3+, tested with v3.3.0)
  • Vagrant w/ vagrant-libvirt

Setup

@detiber
detiber / output.txt
Last active July 23, 2019 19:29
Docker push failure
docker images | grep v0.3.5
gcr.io/k8s-staging-cluster-api-aws/cluster-api-aws-controller v0.3.5 ac2f43f6c00b 49 years ago 68.1MB
detiberyeti~$ docker tag ac2f43f6c00b gcr.io/k8s-staging-cluster-api/cluster-api-aws-controller:v0.3.5
detiberyeti~$ docker push gcr.io/k8s-staging-cluster-api/cluster-api-aws-controller:v0.3.5
The push refers to repository [gcr.io/k8s-staging-cluster-api/cluster-api-aws-controller]
813b69fcb0db: Pushed
87c747af6dc3: Layer already exists
44873b569cf3: Mounted from k8s-staging-cluster-api-aws/cluster-api-aws-controller
@detiber
detiber / README.md
Created March 19, 2019 17:36
k8s v1.13.4 make all
detiberyeti~gosrck8s.iokubernetes⚓ c27b913fdd$ make clean
+++ [0319 13:32:05] Verifying Prerequisites....
+++ [0319 13:32:05] Removing _output directory
Removing pkg/generated/openapi/zz_generated.openapi.go ..
Removing test/e2e/generated/bindata.go ..
detiberyeti~gosrck8s.iokubernetes⚓ c27b913fdd$ time make all && time make all
+++ [0319 13:32:23] Building go targets for linux/amd64:
    ./vendor/k8s.io/code-generator/cmd/deepcopy-gen
+++ [0319 13:32:34] Building go targets for linux/amd64: