Contains the Helm chart for our web application
$ ./build_images.sh 1 # The argument indicates the tag of the images 1 = image:v1$ microk8s enable istio metallbWhen metallb asks for an IP range, input 10.50.100.5-10.50.100.25:
Enabling MetalLB
Enter each IP address range delimited by comma (e.g. '10.64.140.43-10.64.140.49,192.168.0.105-192.168.0.111'): 10.50.100.5-10.50.100.25In order to curl to the todo-app.com url from your cluster, e.g. for development purposes, edit your /etc/hosts file in your cluster, so that your gateway IP is associated with todo-app.com.
# /etc/hosts
YOUR_GATEWAY_IP todo-app.comYou can find YOUR_GATEWAY_EXTERNAL_IP by typing
kubectl get svc istio-ingressgateway -n istio-systemIt is then found under the column EXTERNAL_IP.
To allow the Istio service mesh to work, a namespace with the istio-injection label has to be made:
$ kubectl create namespace todo
$ kubectl label namespace todo istio-injection=enabledInstall the Helm chart with the namespace created in the previous step.
$ microk8s helm3 install todo-app . -n todo