- Docker for Desktop with ready Kubernetes
- Helm 3
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
helm repo add carlosjgp https://carlosjgp.github.io/open-charts/
helm repo add dapr https://daprio.azurecr.io/helm/v1/repo
helm repo update
Open PowerShell at .\.helm
-
Install MS SqlServer
helm install sqlserver stable/mssql-linux --version 0.11.2 -f .\sqlserver.dev.yaml
-
Install NGINX Ingress Controller
helm install nginx ingress-nginx/ingress-nginx
-
Install Seq
helm install seq stable/seq --version 2.2.0 -f .\seq.dev.yaml
-
Install Zipkin
helm install zipkin carlosjgp/zipkin --version 0.2.0 -f .\zipkin.dev.yaml
-
Install Redis
helm install redis bitnami/redis -f .\redis.dev.yaml
-
Install Dapr on Kubernetes
helm install dapr dapr/dapr
-
Install Dapr's components
kubectl apply -f .\components
-
Tye deploy
tye deploy ..\tye-k8s.yaml --interactive
-
Notes: We'll be asked to input the following
-
Enter the connection string to use for service 'sqlserver':
Data Source=sqlserver,1433;User Id=sa;Password=P@ssword;MultipleActiveResultSets=True
-
Enter the URI to use for service 'zipkin':
-
Enter the URI to use for service 'seq':
-
-
Add hosts
127.0.0.1 seq.simplestore.local 127.0.0.1 zipkin.simplestore.local 127.0.0.1 product.simplestore.local 127.0.0.1 graphql.simplestore.local
-
Install Prometheus
helm install dapr-prom stable/prometheus
-
Install Grafana
helm install grafana stable/grafana -f .\grafana.dev.yaml
127.0.0.1 chart.simplestore.local
-
Get password for admin account of Grafana
$password = kubectl get secret grafana -o jsonpath="{.data.admin-password}"; [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($password))
-
Open browser at
http://chart.simplestore.local
with the following credential- Username: admin
- Password: [get-from-previous-step]
PLGTbcH6qOH0J99ls22V9rG6lNVAnxmbuO5Lf07O
-
Click Configuration Settings -> Data Sources
-
Configure for Prometheus DataSource
-
Import dashboard
-
View Logging at
http://seq.simplestore.local
-
View Tracing at
http://zipkin.simplestore.local
-
View Charts at
http://chart.simplestore.local
-
Open
http://graphql.simplestore.local
; then use some examples in here -
To access sqlserver
- Forward port 1433
kubectl port-forward service/sqlserver 1433:1433
- Use the following information to access
- Server Name: 127.0.0.1,1433
- Login: sa
- Password: P@ssword
- Forward port 1433
tye undeploy ..\tye-k8s.yaml
helm uninstall sqlserver redis seq zipkin nginx dapr dapr-prom grafana
kubectl delete -f .\components