Setting secrets in Kubernetes using Azure DevOps

I had a problem a few weeks ago where i was struggling to get Kubernetes (AKS) secrets set at deploy/release time when using Azure DevOps (VSTS). This is important as one doesn't want to be storing production secrets in appsettings files/docker images as these could potentially be viewed by consumers of those images. See here: Don't build secrets into the container image

I found this to be a very useful component by TinToy. It allows secrets to be read at web app start time. A secret called DBConnectionString be added to a container just after deploy time by running the kubectl command like so:

kubectl.exe create secret generic application-web-appsettings "--from-literal=DBConnectionString=***" -o json

Have a look at this example for more information:

Config with .NetCore