Hello World Example

A stateless single-pod web workload comprising a deployment and a loadbalancer service.

This example demonstrates how a container image can be included as an artifact within a CSAR.

Building the CSAR

Deploying

turandot service deploy hello-world --file=dist/hello-world.csar

If you want to access the deployed web server from outside the cluster you will need to have loadbalancing supported on your Kubernetes cluster. On Minikube you can just start a tunnel.

If supported, the “url” output of the service template will work. To open from your default web browser:

xdg-open $(turandot service output hello-world url)