This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |