This is an example of how to use kustomize with Tilt. It really couldn't be simpler!
- Have a directory with a
kustomization.yaml
file in it. In this case we have a directory that contains YAML for a wordpress install - Use the
kustomize
function in your Tiltfile to usekustomize
to build the realized YAML.
yaml = kustomize('./wordpress')
- Apply that YAML to your cluster with
k8s_yaml
!
k8s_yaml(yaml)
tilt up
!
This wordpress example was taken from the kustomize examples directory.