Skip to content

psosnicki/k8s-aspcore-helm-istio-steeltoe-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes ASP.NET Core WebApi Istio Helm Steeltoe Minikube example

Build with:

  • ASP.NET Core Web API
  • Docker
  • Helm
  • Istio
  • Minikube
  • Steeltoe
Prerequisites
> choco install docker-desktop
> choco install minikube
> choco install kubernetes-cli
> choco install kubernetes-helm

Start:

> ./start.ps1

or

#start minikube cluster
minikube start
#install istio demo profile
istioctl install --set profile=demo -y
#enable auto injecting sidecar into pods (default namespace)
kubectl label namespace default istio-injection=enabled --overwrite
#install kiali, prometheus, jaeger 
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.16/samples/addons/kiali.yaml
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.16/samples/addons/prometheus.yaml
kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.16/samples/addons/jaeger.yaml

#provide terminal to docker engine inside minikube
minikube -p minikube docker-env --shell powershell | Invoke-Expression

#build aspnet-core-web-api docker image inside minikube
docker build -t aspnet-core-web-api:latest .\src\WebApi

#update helm dependencies
helm dependency update .\k8s

#install helm package
helm install web-api .\k8s --wait

#enable access to application running within minikube (istio-ingressgateway)
minikube tunnel
Browse to http://127.0.0.1/test

Dashboards

minikube dashboard

alt text

istioctl dashboard kiali

alt text

istioctl dashboard jaeger

alt text

Cleanup

#uninstall helm web-api package
helm uninstall web-api
#remove istio
istioctl uninstall --purge

About

k8s aspcore web-api istio helm steeltoe minikube example

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published