DEV Community 👩‍💻👨‍💻

Cover image for How to deploy Ingress with Tilt

Posted on

How to deploy Ingress with Tilt

Photo by Hello I'm Nik 🎞 on Unsplash

Tilt is an amazing tool to deploy easily services to your local kubernetes file.

But how to deploy ingress with tilt ?

Luckily, browsing tilt issues, i have found this github containing an example.

load('ext://namespace', 'namespace_create', 'namespace_inject')


k8s_yaml(namespace_inject('ambassador-operator-kind.yaml', 'ambassador'))

k8s_resource('ambassador-operator', objects=[

k8s_resource(new_name='ingress', objects=['example-ingress'], resource_deps=['ambassador-operator'])
Enter fullscreen mode Exit fullscreen mode

It creates the namespace through a tilt plugin, and load the yaml resources that will be used using k8s_yaml.

It then creates the ambassador operator using k8s_resource. Please note that the : is used to split name from kind.

Finally, it create the ingress.

Hope this helps !

Top comments (0)

🌚 Turn on dark mode

🔠 Change your default font

📚 Adjust your experience level to see more relevant content


Head to your account's Settings to do all this and more.