serving the solutions day and night

Pages

Sunday, August 16, 2020

Deploy ASP.NET Core Application images in Kubernetes (K8s) & POD

Publish the image in Docker Hub

Rename the image tag from frontendmvc:v1, to <account_username>/<repository_name>:<tag> (in our case, makdockerhub/myapp:frontendmvc-v1). 

docker tag frontendmvc makader/myapp:frontendmvc-v1

Publish the image with the docker push command. 

  docker push makader/myapp:frontendmvc-v1

 

 

Now we can deploy a frontendmvc container everywhere (aws, azure, pcf, Kubernetes,...).


Kubernetes Dashboard

Command to create all the Kubernetes components to run the Dashboard  (https://github.com/kubernetes/dashboard)

kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-rc5/aio/deploy/recommended.yaml

Access the application locally, command to start Kubernetes proxy server 

kubectl proxy 

 


Docker Compose

 Docker Compose is a tool that can execute containers from a YAML configuration file.
 Create docker-compose.yaml in the c:\myapp\ folder (code in c:\myapp\frontendmvc).