You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
os_type = "Linux" # Default is Linux, we can change to Windows
492
+
vm_size = "Standard_DS2_v2"
493
+
priority = "Regular" # Default is Regular, we can change to Spot with additional settings like eviction_policy, spot_max_price, node_labels and node_taints
494
+
node_labels = {
495
+
"nodepool-type"= "user"
496
+
"environment"= var.environment
497
+
"nodepoolos"= "linux"
498
+
"ui-app"= "reactjs-apps"
499
+
}
500
+
tags = {
501
+
"nodepool-type"= "user"
502
+
"environment"= var.environment
503
+
"nodepoolos"= "linux"
504
+
"ui-app"= "reactjs-apps"
505
+
}
506
+
}
480
507
```
481
-
-Execute Git Commands
508
+
-Commit Code
482
509
```
483
510
# First sync Remote repo with local repo
484
511
git pull
485
512
486
513
# Commit
487
514
git add .
488
-
git commit -am "Added New Node-label to linux101 nodepool"
515
+
git commit -am "Added New Node-Pool linux102"
489
516
git push
490
517
```
491
-
- Verify the pipeline
518
+
- Verify the pipeline
519
+
520
+
### Connect to Dev AKS Cluster & verify
521
+
```
522
+
# Setup kubeconfig
523
+
az aks get-credentials --resource-group <Resource-Group-Name> --name <AKS-Cluster-Name>
524
+
az aks get-credentials --resource-group terraform-aks-dev --name terraform-aks-dev-cluster --admin
525
+
526
+
# View Cluster Info
527
+
kubectl cluster-info
528
+
529
+
# List Kubernetes Worker Nodes
530
+
kubectl get nodes
531
+
```
532
+
533
+
534
+
### Connect to QA AKS Cluster & Verify
535
+
```
536
+
# Setup kubeconfig
537
+
az aks get-credentials --resource-group <Resource-Group-Name> --name <AKS-Cluster-Name>
538
+
az aks get-credentials --resource-group terraform-aks-qa --name terraform-aks-qa-cluster --admin
539
+
540
+
# View Cluster Info
541
+
kubectl cluster-info
542
+
543
+
# List Kubernetes Worker Nodes
544
+
kubectl get nodes
545
+
```
546
+
547
+
## Step-17: Clean-Up
548
+
- Delete the Resource groups which will delete all resources
549
+
- terraform-aks-dev
550
+
- terraform-aks-qa
551
+
- Delete AD Groups
552
+
492
553
493
554
## References
494
555
-[Publish & Download Artifacts in Azure DevOps Pipeline](https://docs.microsoft.com/en-us/azure/devops/pipelines/artifacts/pipeline-artifacts?view=azure-devops&tabs=yaml)
0 commit comments