diff --git a/Tiltfile b/Tiltfile index b54d1e85..3653cf45 100644 --- a/Tiltfile +++ b/Tiltfile @@ -7,11 +7,6 @@ local_resource('compile smee', deps=["go.mod", "go.sum", "internal", "Dockerfile", "cmd/smee/main.go", "cmd/smee/flag.go", "cmd/smee/backend.go"], ) -#docker_build( -# 'quay.io/tinkerbell/smee', -# '.', -# dockerfile='Dockerfile', -#) docker_build_with_restart( 'quay.io/tinkerbell/smee', '.', @@ -27,12 +22,14 @@ default_trusted_proxies = local_output("kubectl get nodes -o jsonpath='{.items[* trusted_proxies = os.getenv('TRUSTED_PROXIES', default_trusted_proxies) lb_ip = os.getenv('LB_IP', '') stack_version = os.getenv('STACK_CHART_VERSION', '0.5.0') -stack_location = os.getenv('STACK_LOCATION', '/home/tink/repos/tinkerbell/charts/tinkerbell/stack') # or a local path like '/home/tink/repos/tinkerbell/charts/tinkerbell/stack' +stack_location = os.getenv('STACK_LOCATION', 'oci://ghcr.io/tinkerbell/charts/stack') # or a local path like '/home/tink/repos/tinkerbell/charts/tinkerbell/stack' namespace = 'tink' if lb_ip == '': fail('Please set the LB_IP environment variable. This is required to deploy the stack.') +# to use a KinD cluster, add a macvlan interface into the KinD docker container. for example: `docker network connect macvlan kind-control-plane` +# Then uncomment the 2 interface lines below. helm_resource('stack', chart=stack_location, namespace=namespace, @@ -43,8 +40,8 @@ helm_resource('stack', '--version=%s' % stack_version, '--set=global.trustedProxies={%s}' % trusted_proxies, '--set=global.publicIP=%s' % lb_ip, - '--set=stack.kubevip.interface=eth1', - '--set=stack.relay.sourceInterface=eth1', + #'--set=stack.kubevip.interface=eth1', + #'--set=stack.relay.sourceInterface=eth1', ], release_name='stack' )