github.com/tilt-dev/tilt@v0.33.15-0.20240515162809-0a22ed45d8a0/integration/k8s_custom_deploy/Tiltfile (about) 1 2 include('../Tiltfile') 3 4 k8s_custom_deploy( 5 'custom-deploy-int-test', 6 # forcibly delete and re-create the deployment whenever run 7 apply_cmd='kubectl delete --ignore-not-found=true --wait=true -f "${DEPLOY_FILE}" >/dev/null && kubectl create -oyaml -f "${DEPLOY_FILE}"', 8 delete_cmd='kubectl delete --ignore-not-found=true --wait=true -f "${DELETE_FILE}"', 9 deps=['.'], 10 image_selector='nginx', 11 apply_env={'DEPLOY_FILE': 'deploy.yaml'}, 12 delete_env={'DELETE_FILE': 'deploy.yaml'}, 13 live_update=[ 14 fall_back_on('./fallback.txt'), 15 sync('./web/', '/usr/share/nginx/html/') 16 ] 17 ) 18 k8s_resource( 19 'custom-deploy-int-test', 20 port_forwards=['54871:80'] 21 )