Difference between revisions of "Kubernetes/Tilt"
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
</source> | </source> | ||
= Operations = | = https://docs.tilt.dev/cli/tilt.html Operations] = | ||
<source lang=bash> | <source lang=bash> | ||
minikube start # tilt will deploy to the current kubectl context | 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 up # press [s] to stream logs to the console rather than to open UI | ||
tilt down | tilt down | ||
# -d, --debug Enable debug logging | |||
# -v, --verbose Enable verbose logging | |||
</source> | </source> | ||
{{Note | Tilt prefix all Kubernetes objects with <code>chart-</code>, eg. <code>deployment.apps/chart-myservice</code> }} | {{Note | Tilt prefix all Kubernetes objects with <code>chart-</code>, eg. <code>deployment.apps/chart-myservice</code> }} |
Revision as of 20:05, 18 January 2021
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', '.')
https://docs.tilt.dev/cli/tilt.html 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