Traditional Windows K8s release for traditional ASP.net application with traditional_wink8s_devops_build.yaml
GitHub Repo used for both build (see yaml) and release (deploy): https://github.com/jldeen/fabrikamfiber/tree/helm-2019-mssql-linux
Dockerfile direct link: https://github.com/jldeen/fabrikamfiber/blob/helm-2019-mssql-linux/FabrikamFiber.Web/Dockerfile
The following tasks can run on Windows or Linux hosted (or private) agent.
You will need to add 3 tasks:
Note: These steps are the same you would use to deploy to K8s via helm in a standard Linux containers scenario
Install Helm via the Helm tool installer (I used version 2.11.0 and made sure to UNCHECK "Check for latest version of Helm" since my cluster was using 2.11.0. If you do not uncheck this, Azure DevOps will download 2.12.0 and you will have a client server mismatch)
Helm init (with --client-only as an arguement) via the Package and deploy Helm charts task
Helm upgrade via the Package and deploy Helm charts task
- Ensure you add in a connection to a valid hybrid windows/linux cluster running Windows 1809
- I used the release name "eshop"
- I used the following values override in the Arguments section:
- --set image.repository=acr-reg-here.azurecr.io/jldeen/eshoponweb --set image.tag=$(Build.BuildId)