Skip to content

Instantly share code, notes, and snippets.

View konstan's full-sized avatar
🎯
Focusing

Konstantin Skaburskas konstan

🎯
Focusing
View GitHub Profile
@konstan
konstan / k3d_rancher.sh
Last active February 6, 2022 19:40 — forked from jwsy/k3d_rancher.sh
Create a k8s cluster and install Rancher with k3d and Helm
#!/bin/bash -x
echo Set localhost or public IP.
echo 1
HOSTNAME=rancher.k3d.localhost
HOSTNAME=rancher.$(ip a s eth0 | awk '/inet / {print $2}' | sed -e 's|/.*||').nip.io
### 1. Create a cluster with k3d that connects port 443 to the loadbalancer provided by k3d
k3d cluster create k3d-rancher --api-port 6550 --servers 1 --agents 3 --port 443:443@loadbalancer --wait
k3d cluster list