<p>I'm discovering Kubernetes and Docker. I read lot of tutorials to deploy a DotNetCore App with Azure Devops Docker container and Kubernetes. </p>

<p>I Restore, Build, Test, and Publish with Azure devops and i copy my output files in my docker image. By the way, I read 2 ways to do it, sometimes restore build test and publish steps are executed inside the docker image. </p>

<p>Here my build definition :</p>

<p><img src="https://i.stack.imgur.com/tFupC.png" width="100" height="100"></p>

<p>My Release definition : </p>

<p><img src="https://i.stack.imgur.com/JYWdt.png" width="100" height="100"></p>

<p>After release, all steps are in green, and the docker image is in Azure Docker Conatiner.</p>

<p><img src="https://i.stack.imgur.com/jJgJt.png" width="100" height="100"></p>

<p>But there si no pod created in kubernete dashboard </p>

<p><img src="https://i.stack.imgur.com/AVHRY.png" width="100" height="100"></p>

<p>DockerFile : </p>

<pre><code>FROM microsoft/dotnet:2.2-aspnetcore-runtime AS base
WORKDIR /app
COPY /app app/
ENTRYPOINT [ "dotnet" , "WebApi.dll" ]
</code></pre>

<p>I don't fully understand the Pipeline for Kubernetes services, someone have more informations ?</p>

TangoCharly
<p>well, your release step is empty. so you are instructing azure devops to do literally nothing. you need to create a deployment on kubernetes:</p>

<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: nginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.7.9
        ports:
        - containerPort: 80
</code></pre>

<p>and then you can use release to replace image tag\version on the deployment:</p>

<pre><code>kubectl set image deployment/nginx-deployment nginx=myimage:$(Build.BuildId)
</code></pre>

<p>how you define the tag would depend on how you tag the container when you build it.</p>
