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 15, 2019 20:23
Pivot testing

Pivot Testing

Initial testing, no Machine* objects, only a Cluster object in the default namespace.

Using cluster-api-provider-aws:

clusterctl create cluster -v 3   --bootstrap-type kind   --provider aws   -m ./cmd/clusterctl/examples/aws/out/machines.yaml   -c ./cmd/clusterctl/examples/aws/out/cluster.yaml   -p ./cmd/clusterctl/examples/aws/out/provider-components.yaml -a ./cmd/clusterctl/examples/aws/out/addons.yaml
@detiber
detiber / README.md
Created January 9, 2019 01:03
yeti bootstrapping
sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo

# work around docker-ce-stable not being available yet for f29
sudo dnf install docker-ce --releasever=28

sudo dnf install golang
sudo dnf copr enable -y vbatts/bazel
sudo dnf install bazel
@detiber
detiber / README.md
Last active January 22, 2019 18:20
Cluster API Provider AWS phases with KIND

Cluster API Provider AWS Phases with KIND

Pre-demo Prep

Install KIND

go get -u sigs.k8s.io/kind
@detiber
detiber / README.md
Last active December 21, 2018 19:54
Cluster API Provider AWS Demo

Cluster API Provider AWS Demo script

Pre-demo Prep

Build and install the artifacts

make clean
export DEV_DOCKER_REPO=gcr.io/$(gcloud config get-value project)
make clusterctl clusterawsadm docker-build-dev docker-push-dev
@detiber
detiber / README.md
Created November 27, 2018 20:24
Testing kubeadm v1.12 - v1.13 stacked control plane upgrade

Testing kubeadm v1.12 - v1.13 stacked control plane upgrade

Install docker on each host:

amazon-linux-extras install docker=18.06.1
cat > /etc/docker/daemon.json <<EOF
{
  "exec-opts": ["native.cgroupdriver=systemd"]
}
@detiber
detiber / README.md
Last active September 28, 2018 21:30
kubeadm v1.12 stacked control plane install

Kubeadm stacked control plane install v1.12

Warning: hardcoded values below will need to be modified for testing against different hostnames and/or IPs

Common Steps

Install Docker

apt-get update && \
@detiber
detiber / README.md
Last active September 19, 2018 16:44
kubeadm Stacked HA Upgrade v1.11.x to v1.12.x

kubeadm Stacked HA Upgrade v1.11.x to v1.12.x

Warning: hardcoded values below will need to be modified for testing against different hostnames and/or IPs

Common Steps

Install Docker

apt-get update && \
@detiber
detiber / README.md
Last active September 6, 2018 20:20
kubeadm Stacked HA Upgrade

kubeadm Stacked HA Upgrade v1.11 Minor upgrades

Warning: hardcoded values below will need to be modified for testing against different hostnames and/or IPs

Common Steps

Install Docker

apt-get update
@detiber
detiber / actuator.go
Last active July 24, 2018 19:27
Encoding/Decoding Provider Status
package machine
import (
"fmt"
"github.com/aws/aws-sdk-go/service/elbv2/elbv2iface"
"github.com/aws/aws-sdk-go/service/iam/iamiface"
"github.com/aws/aws-sdk-go/service/ec2/ec2iface"
@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