-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/bash | ||
# Date : September 28th, 2024 | ||
# This is copied from a combinate of two sources: | ||
# - https://tinkerbell.org/docs/setup/install/#tldr | ||
# - https://github.com/tinkerbell/playground/blob/main/stack/vagrant/setup.sh#L76-L86 | ||
|
||
trusted_proxies=$(kubectl get nodes -o jsonpath='{.items[*].spec.podCIDR}' | tr ' ' ',') | ||
echo "Trusted Proxies network is $trusted_proxies" | ||
|
||
# Etherenet interface | ||
interface=enp1s0 | ||
# Extra IP address for kube-vip to use on the ethernet interface. | ||
LB_IP=192.168.1.250 | ||
|
||
STACK_CHART_VERSION=0.4.5 | ||
|
||
helm install tink-stack oci://ghcr.io/tinkerbell/charts/stack \ | ||
--version "$STACK_CHART_VERSION" \ | ||
--create-namespace \ | ||
--namespace tink-system \ | ||
--wait \ | ||
--set "smee.trustedProxies={${trusted_proxies}}" \ | ||
--set "hegel.trustedProxies={${trusted_proxies}}" \ | ||
--set "stack.loadBalancerIP=$LB_IP" \ | ||
--set "stack.kubevip.interface=$interface" \ | ||
--set "stack.relay.sourceInterface=$interface" \ | ||
--set "stack.loadBalancerIP=$LB_IP" \ | ||
--set "smee.publicIP=$LB_IP" |