Steps to run:
- Replace the instrumentation key and AzureWebJobsStorage conn string with appropriate values in the docker file
- Build the k8senricherissue.csproj
- Open command prompt and navigate to the path: k8senricherissue\bin\Debug\net6.0
- Run docker build . -t k8senricherissue
- Run kubectl apply -f deploy.yaml
- Expose port 80 of the pod: kubectl expose pod --type=LoadBalancer --port=80
- To test the application go to http://localhost/api/Function1, to see the healthcheck go to http://localhost
- To redeploy after making any changes run kubectl delete -f deploy.yaml and repeat the steps from 2 to 7