Kubernetes/Tilt
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Install
VERSION=$(curl --silent "https://api.github.com/repos/tilt-dev/tilt/releases/latest" | jq -r .tag_name | tr -d "v"); echo $VERSION TEMPDIR=$(mktemp -d) curl -fsSL https://github.com/tilt-dev/tilt/releases/download/v$VERSION/tilt.$VERSION.linux.x86_64.tar.gz | tar -xzv --directory $TEMPDIR tilt sudo mv $TEMPDIR/tilt /usr/local/bin
Develop Helm charts
# Tiltfile k8s_yaml(helm('charts/myservice', values='env/mydev-values.yaml')) docker_build('myservice', '.')
Operations
minikube start # tilt will deploy to the current kubectl context tilt version # -> v0.18.4, built 2021-01-13 tilt up # press [s] to stream logs to the console rather than to open UI tilt down # -d, --debug Enable debug logging # -v, --verbose Enable verbose logging
Note: Tilt prefix all Kubernetes objects with chart-
, eg. deployment.apps/chart-myservice