Skip to content

Commit

Permalink
Create deploy_tink-stack.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsn0w authored Sep 28, 2024
1 parent bad9b17 commit 66f093d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions deploy_tink-stack.sh
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"

0 comments on commit 66f093d

Please sign in to comment.