Skip to content

Commit

Permalink
feat: P4PU-701 prometheus install (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
umbcoppolabottazzi authored Nov 25, 2024
1 parent 5febc27 commit 2a3cda5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/05_aks/02_aks_storage.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module "aks_storage_class" {
source = "./.terraform/modules/__v3__/kubernetes_storage_class"

depends_on = [module.aks]
}
12 changes: 12 additions & 0 deletions src/05_aks/03_prometheus.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
resource "kubernetes_namespace" "prometheus" {
metadata {
name = "prometheus"
}
}

module "aks_prometheus_install" {
source = "./.terraform/modules/__v3__/kubernetes_prometheus_install"

prometheus_namespace = kubernetes_namespace.prometheus.metadata[0].name
storage_class_name = module.aks_storage_class.default_zrs # "default-zrs"
}
3 changes: 3 additions & 0 deletions src/05_aks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@
|------|--------|---------|
| <a name="module___v3__"></a> [\_\_v3\_\_](#module\_\_\_v3\_\_) | git::https://github.com/pagopa/terraform-azurerm-v3.git | 8405da92a68ffc8267fed02a4689e55387299248 |
| <a name="module_aks"></a> [aks](#module\_aks) | ./.terraform/modules/__v3__/kubernetes_cluster | n/a |
| <a name="module_aks_prometheus_install"></a> [aks\_prometheus\_install](#module\_aks\_prometheus\_install) | ./.terraform/modules/__v3__/kubernetes_prometheus_install | n/a |
| <a name="module_aks_snet_system"></a> [aks\_snet\_system](#module\_aks\_snet\_system) | ./.terraform/modules/__v3__/subnet | n/a |
| <a name="module_aks_snet_user"></a> [aks\_snet\_user](#module\_aks\_snet\_user) | ./.terraform/modules/__v3__/subnet | n/a |
| <a name="module_aks_storage_class"></a> [aks\_storage\_class](#module\_aks\_storage\_class) | ./.terraform/modules/__v3__/kubernetes_storage_class | n/a |
| <a name="module_argocd_workload_identity_configuration"></a> [argocd\_workload\_identity\_configuration](#module\_argocd\_workload\_identity\_configuration) | ./.terraform/modules/__v3__/kubernetes_workload_identity_configuration | n/a |
| <a name="module_argocd_workload_identity_init"></a> [argocd\_workload\_identity\_init](#module\_argocd\_workload\_identity\_init) | ./.terraform/modules/__v3__/kubernetes_workload_identity_init | n/a |
| <a name="module_cert_mounter_argocd_internal"></a> [cert\_mounter\_argocd\_internal](#module\_cert\_mounter\_argocd\_internal) | ./.terraform/modules/__v3__/cert_mounter | n/a |
Expand Down Expand Up @@ -59,6 +61,7 @@
| [kubernetes_namespace.ingress](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource |
| [kubernetes_namespace.keda](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource |
| [kubernetes_namespace.namespace_argocd](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource |
| [kubernetes_namespace.prometheus](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource |
| [null_resource.argocd_change_admin_password](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
| [azuread_group.adgroup_admin](https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/data-sources/group) | data source |
| [azuread_group.adgroup_developers](https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/data-sources/group) | data source |
Expand Down
4 changes: 2 additions & 2 deletions src/05_aks/env/itn-dev/terraform.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ aks_system_node_pool = {
os_disk_type = "Managed"
os_disk_size_gb = "75"
node_count_min = "1"
node_count_max = "2"
node_count_max = "3"
only_critical_addons_enabled = true
node_labels = { node_name : "aks-system-01", node_type : "system" },
node_tags = { node_tag_1 : "1" },
Expand All @@ -49,7 +49,7 @@ aks_user_node_pool = {
os_disk_type = "Managed"
os_disk_size_gb = "75"
node_count_min = "1"
node_count_max = "2"
node_count_max = "1"
node_labels = { node_name : "aks-userdefault", node_type : "user" },
node_taints = [],
node_tags = { node_tag_2 : "2" },
Expand Down

0 comments on commit 2a3cda5

Please sign in to comment.