Skip to content

Instantly share code, notes, and snippets.

@david-hamann
david-hamann / kub.md
Last active February 27, 2024 00:30
Create a Small Kubernetes Cluster

Install a Small Kubernetes Cluster

A walkthrough of the commands that need to be run on a new ubuntu server instance to install a small kubernetes cluster.

Install Docker

for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
sudo apt update -y
@david-hamann
david-hamann / main.go
Last active January 24, 2023 15:53 — forked from thrawn01/main.go
etcd `concurrency.Election` example with connection interruption detection and initial leadership status reporting
package main
/*
https://hub.docker.com/r/bitnami/etcd
https://etcd.io/docs/v3.5/integrations/#go
https://amyangfei.me/2020/12/19/best-practice-with-go-etcd/
https://pkg.go.dev/go.etcd.io/etcd/client/v3/concurrency#Election.Leader
https://microsoft.github.io/etcd3/classes/election.html
https://stackoverflow.com/questions/74371830/how-to-promote-a-leader-in-ectd-election-api-go-client
https://medium.com/@felipedutratine/leader-election-in-go-with-etcd-2ca8f3876d79
@david-hamann
david-hamann / multiple_ssh_setting.md
Created April 16, 2019 04:11 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@david-hamann
david-hamann / readme.md
Created April 12, 2019 13:43 — forked from benstr/readme.md
Gist Markdown Cheatsheet

#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6


Paragraph