Microservice with Azure Kubernets Service (AKS) and Azure Devops İzmirde olan etkinlik notlarım.
Onur Yüksektepeli @oyuksektepeli - Microsoft Cloud Solutions Architect - Microsoft MVP (Azure)
Kubernets
- 150.000 Commits
- 24.000 Contributors
- #1 Github Project
Microsoft contributions to the community
- Helm
- CNAB
- Porter
- Keda
- Draft
- Vscode Kubernets
azurespeed.com
Azure Kubernets Services - (AKS)
az
= AZURE
az aks get-credentials --name NAME --resource-group RESOURCE-GROUP
az aks browse --name NAME --resource-group RESOURCE-GROUP-rg
kuberctl get namespaces
kubectl get pods -n nc-dev
Deployment
Özet
- Microservices var.
- Deploy’u için yaml yazılır.
kubectl get aply -f .\deployment.yaml
olarak çalıştırılır.
Örnek
oyuksektepeli/microservices-demo
Yaml Örnekler
kubectl get deployments
kubectl get aply -f .\deployment.yaml
Bu yaml dosyasında kurallar yazılır. podlar servicelerin ruleları yazılır. Eğer 3 tane pod olacak şekilde rule olursa ve 2 tane pod olursa otomatik olarak yeni bir pod oluşturulur.
kubectl get pods
kubectl get service
DevOps yoksa Microservices olmaz.
Proje Compile Edilme Süreleri
- debug
- build
- runtime
Core uygulaması Kubernets’e Deployment
- Dockerfile container image Hazırla
- git push and public
- https://helm.sh Kubernets package manager kur.
helm Örnek Wordpress
helm search wordpress
helm fetch stable/wordpress
helm fetch stable/wordpress--untar
- Helm oluştur
helm create dockerapp
- Helm package
helm package
dockerapp helm sh’ı oluşur.
Azure Pipline
- Build an image
- Push an image
- Install Helm
- helm init
- helm package
- Publish Artifacts
- Commit to Live
- Azure Boards - Jira ve Trello benzeri
- Azure Test - Azure Devops üzerinden Test yazma tool’u.