Skip to content

Instantly share code, notes, and snippets.

View picar's full-sized avatar
🏠
Working from home

Picar picar

🏠
Working from home
  • Vancouver, BC, Canada
  • 22:16 (UTC -07:00)
View GitHub Profile
@picar
picar / AKS.md
Last active March 1, 2025 18:38
AKS

az group create --name rg-aks1 az aks create --resource-group rg-aks1 --name aks1 az aks list az aks nodepool list --resource-group rg-aks1 --cluster-name aks1 az aks scale --resource-group rg-aks1 --name aks1 --node-count 1

az aks get-credentials --resource-group rg-aks1 --name aks1 kubectl get nodes

export INTERFACE=ens33
export VIP=192.168.1.6
KVVERSION=$(curl -sL https://api.github.com/repos/kube-vip/kube-vip/releases | jq -r ".[0].name")
echo $KVVERSION
alias kube-vip="ctr run --rm --net-host ghcr.io/kube-vip/kube-vip:$KVVERSION vip /kube-vip"
ctr images pull ghcr.io/kube-vip/kube-vip:$KVVERSION
kube-vip manifest pod --interface $INTERFACE --vip $VIP --controlplane --arp --leaderElection | tee /etc/kubernetes/manifests/kube-vip.yaml
root@k8s02:~# cat /etc/kubernetes/manifests/kube-vip.yaml
apiVersion: v1
@picar
picar / gist:1bb9a928398edce6f241fe0a81b63460
Last active October 4, 2024 00:28
K8s single node on Ubuntu 24 LTS minimized
# static IP
# cat /etc/netplan/50-cloud-init.yaml
network:
version: 2
ethernets:
ens33:
addresses:
- 192.168.1.1/24
routes:
- to: default
/var/www/html# mkdir myrepo.git
/var/www/html# cd myrepo.git/
/var/www/html/myrepo.git# git init --bare .
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and