Skip to content

Instantly share code, notes, and snippets.

@NileshGule
Last active May 30, 2019 01:11
Show Gist options
  • Save NileshGule/61492f039a390b62d9c088c1643884e2 to your computer and use it in GitHub Desktop.
Save NileshGule/61492f039a390b62d9c088c1643884e2 to your computer and use it in GitHub Desktop.
Voxxed Days 2019 demo setup

Deploy eShopOnContainers

Provision AKS cluster

Run the initialize AKS cluster script from https://github.com/NileshGule/AKS-learning-series/tree/feature/sql2019/Powershell

The script also initializes Helm on the cluster with the Tiller account.

.\initializeAKS.ps1 `
-resourceGroupName vdeshop `
-clusterName vdeshopcluster `
-dnsNamePrefix vddnsprefix `
-workerNodeCount 3

Deploy eShopOnContainers

Run the deploy all Powershell script from https://github.com/NileshGule/eShopOnContainers/tree/dev/k8s/helm

.\deploy-all.ps1 `
-externalDns aks `
-aksName vdeshopcluster `
-aksRg vdeshop `
-imageTag dev
kubectl config use-context vdeshopcluster

kubectl get pods

kubectl describe node aks-nodepool1-17954862-0

Browse Kubernetes control plane

.\BrowseAKS.ps1 `
-resourceGroupName vdeshop `
-clusterName vdeshopcluster

Access eShopOnContainers websites

http://eshop.7747d9a51d2c4f0391c0.southeastasia.aksapp.io http://eshop.7747d9a51d2c4f0391c0.southeastasia.aksapp.io/webmvc

Deploy TechTalks

Provision AKS cluster

.\initializeAKS.ps1 `
-resourceGroupName vdtecktalksrg `
-clusterName vdtecktalkscluster `
-dnsNamePrefix vdtechtalksprefix `
-workerNodeCount 6
kubectl config use-context vdtecktalkscluster
.\BrowseAKS.ps1 `
-resourceGroupName vdtecktalksrg `
-clusterName vdtecktalkscluster

Download Istio binary

https://istio.io/docs/setup/kubernetes/download/

Create Prometheus & Kiali secrets

Navigate to Istio Directory containing Manifest files for Prometheus & Graphana secrets https://github.com/NileshGule/AKS-learning-series/tree/feature/sql2019/Istio

kubectl create ns istio-system

kubectl apply -f .\grafana-secret.yaml

kubectl apply -f .\kiali-secret.yaml

Install Istio using Helm chart

Execute the following command from the Istio installation direcory. I am using Istio 1.1.3

helm install install/kubernetes/helm/istio --name istio --namespace istio-system `
  --set global.controlPlaneSecurityEnabled=true `
  --set grafana.enabled=true `
  --set tracing.enabled=true `
  --set kiali.enabled=true
  

Verify Istio install

kubectl get svc --namespace istio-system --output wide

Enable automatic sidecar injection for Istio

kubectl label namespace default istio-injection=enabled

Access Kiali add-on

kubectl port-forward -n istio-system $(kubectl get pod -n istio-system -l app=kiali -o jsonpath='{.items[0].metadata.name}') 20001:20001

Deploy Tech Talks application using Powershell script from Powershell folder https://github.com/NileshGule/AKS-learning-series/tree/master/Powershell

deployTechTalks-AKS.ps1

Get sidecar details

kubectl get pods 

kubectl describe pod techtalksweb-654fc4d847-c9q2q

Browse TechTalks web

http://137.116.148.107/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment