Skip to content

Instantly share code, notes, and snippets.

View dghubble's full-sized avatar

Dalton Hubble dghubble

View GitHub Profile

Tectonic with CentOS 7 Worker

Disclaimer

This is unofficial. The author does not update, maintain, or support this setup. Please direct all questions to your support provider.

CoreOS Tectonic

Provision a Tectonic 1.5.5-tectonic.3 bare-metal cluster (Container Linux, 1 controller, 2 workers) in the usual way with matchbox and the Tectonic Installer.

Ingress configuration options per platform.

Platform Host Port Node Port Cluster IP Provider
Bare-Metal Y Y Y NA
Google Cloud Y N N GLBC
AWS Y Y N NA
DigitalOcean Y Y N NA
Azure Y Y N NA
/dev/sda1 4096 266239 262144 128M EFI System
/dev/sda2 266240 270335 4096 2M BIOS boot
/dev/sda3 270336 2367487 2097152 1G unknown
/dev/sda4 2367488 4464639 2097152 1G unknown
/dev/sda6 4464640 4726783 262144 128M Linux filesystem
/dev/sda7 4726784 4857855 131072 64M unknown
/dev/sda9 4857856 488397134 483539279 230.6G unknown
@dghubble
dghubble / er-x-sfp.md
Last active March 10, 2021 14:20
EdgeRouter ER-X-SFP Notes

EdgeRouter ER-X-SFP

  • ER‑X‑SFP Pins: Ports <- 3.3V, Rx, Tx, Ground -> Lights
  • FTDI Serial Pins: Ground(black),VCC(red),Tx(orange),Rx(yellow)

Baud 57600 8n1, 8 bit per byte, no parity bit, 1 stop bit

screen /dev/ttyUSB0 57600,cs8,-parenb,-cstopb

Adding a Node to Self-hosted Kubernetes

Self-hosted Kubernetes clusters provisioned with coreos-baremetal's bootcfg can be expanded by adding new server hardware later if you wish. This can be done by adding (copying) new worker install and provisioning groups which match the new server by MAC address. The same worker profile will be re-used (because templating).

Here's what I did after wiring up my snazzy new (ok old) IBM server to join my existing 3 node Intel NUC cluster.

Requirements

Project Maintenance Checklist

  • HTTPS Status Badges
    • TravisCI/CircleCI status badge
    • Quay Status badge for images
    • Godoc status badge for public Go packages
  • Travis CI used to test public projects
    • test the app/binary
    • test the ACI
  • Circle CI used to test private projects

bootcfg ACI Experiment

Note: Real bootcfg release ACIs are uploaded to coreos/coreos-baremetal. This is just an experiment.

Build and Sign

Build the binary and ACI. Change the build-aci script to use app name aci.dghubble.io/bootcfg before running.

#/usr/bin/env bash
# Install some pacakages we'll need to compile the driver below.
sudo dnf install gcc kernel-devel patch -y
# Create working dir for Broadcom driver files and patches.
mkdir hybrid_wl_f23
# Change to working dir.
cd hybrid_wl_f23

Keybase proof

I hereby claim:

  • I am dghubble on github.
  • I am dghubble (https://keybase.io/dghubble) on keybase.
  • I have a public key whose fingerprint is 2E3D 92BF 07D9 DDCC B3BA E4A4 8F51 5AD1 6020 65C8

To claim this, I am signing this object:

@dghubble
dghubble / CONTRIBUTING.md
Last active June 10, 2022 12:59
CONTRIBUTING.md

Contributing

Pull Requests

If you've found a bug, please submit a patch as a pull request. Be sure to describe:

  1. How can it be reproduced?
  2. What did you expect?
  3. What actually occurred?
  4. Versions, platform, etc.