Created
January 27, 2021 06:47
-
-
Save knrt10/73202dd9a3ddf5cf6c329136b5df5677 to your computer and use it in GitHub Desktop.
AKS cluster config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #myakscluster.lokocfg | |
| variable "asset_dir" { | |
| default = "./assets" | |
| } | |
| variable "cluster_name" { | |
| default = "knrt10-cluster" | |
| } | |
| variable "workers_count" { | |
| default = 3 | |
| } | |
| variable "workers_vm_size" { | |
| default ="Standard_D2_v2" | |
| } | |
| variable "resource_group_name" { | |
| default = "knrt10-dev-testing" | |
| } | |
| variable "location" { | |
| default = "Central India" | |
| } | |
| variable client_id {} | |
| variable client_secret {} | |
| variable route53_zone_id {} | |
| variable dns_zone {} | |
| cluster "aks" { | |
| asset_dir = var.asset_dir | |
| cluster_name = var.cluster_name | |
| location = var.location | |
| #tenant_id = var.tenant_id | |
| #subscription_id = var.subscription_id | |
| client_id = var.client_id | |
| client_secret = var.client_secret | |
| resource_group_name = var.resource_group_name | |
| worker_pool "default" { | |
| count = var.workers_count | |
| vm_size = var.workers_vm_size | |
| labels = { | |
| "knrt10" = "testing", | |
| } | |
| } | |
| # worker_pool "second" { | |
| # count = var.workers_count | |
| # vm_size = var.workers_vm_size | |
| # | |
| # labels = { | |
| # "knrt10" = "second", | |
| # } | |
| # | |
| # taints = { | |
| # "key1=value1" = "NoSchedule", | |
| # } | |
| # } | |
| tags = { | |
| "key" = "value", | |
| } | |
| } | |
| component "prometheus-operator" { | |
| monitor { | |
| etcd = false | |
| kube_controller_manager = false | |
| kube_scheduler = false | |
| kube_proxy = false | |
| kubelet = false | |
| } | |
| coredns { | |
| selector = { | |
| "k8s-app" = "kube-dns", | |
| } | |
| } | |
| grafana { | |
| ingress { | |
| host = "grafana.${var.cluster_name}.${var.dns_zone}" | |
| class = "contour" | |
| certmanager_cluster_issuer = "letsencrypt-production" | |
| } | |
| } | |
| prometheus { | |
| ingress { | |
| host = "prometheus.${var.cluster_name}.${var.dns_zone}" | |
| class = "contour" | |
| certmanager_cluster_issuer = "letsencrypt-production" | |
| } | |
| } | |
| } | |
| component "contour" { | |
| enable_monitoring = true | |
| } | |
| component "cert-manager" { | |
| email = "tripathi.kautilya@gmail.com" | |
| service_monitor = true | |
| } | |
| component "external-dns" { | |
| policy = "sync" | |
| owner_id = var.cluster_name | |
| aws { | |
| zone_id = var.route53_zone_id | |
| } | |
| service_monitor = true | |
| } | |
| component "httpbin" { | |
| ingress_host = "httpbin.${var.cluster_name}.${var.dns_zone}" | |
| } | |
| component "experimental-istio-operator" { | |
| enable_monitoring = true | |
| } | |
| component "web-ui" { | |
| ingress { | |
| host = "web-ui.${var.cluster_name}.${var.dns_zone}" | |
| } | |
| } | |
| component "inspektor-gadget" {} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment