Addition of EKS multi-cluster observability example (#155)

* Adding EKS multicluster observability example

* EKS multicluster example - precommit fix

* Corrected the path to an example

* Made the multicluster example simpler

* Pre-commit changes

* Saved the images to Github and linked them in docs

* Comments and language edits

* Fix trailing spaces

* Non-controversial naming and simpler variables

* Added region to the data gathering

* Formatting changes

---------

Co-authored-by: Rodrigue Koffi <bonclay7@users.noreply.github.com>
This commit is contained in:
Vijay Chintalapati
2023-05-16 07:33:23 -07:00
committed by GitHub
parent 5b52c7b8e1
commit b84e9b800f
8 changed files with 434 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
provider "kubernetes" {
host = data.aws_eks_cluster.eks_cluster_1.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks_cluster_1.certificate_authority[0].data)
token = data.aws_eks_cluster_auth.eks_cluster_1.token
alias = "eks_cluster_1"
}
provider "kubernetes" {
host = data.aws_eks_cluster.eks_cluster_2.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks_cluster_2.certificate_authority[0].data)
token = data.aws_eks_cluster_auth.eks_cluster_2.token
alias = "eks_cluster_2"
}
provider "helm" {
kubernetes {
host = data.aws_eks_cluster.eks_cluster_1.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks_cluster_1.certificate_authority[0].data)
token = data.aws_eks_cluster_auth.eks_cluster_1.token
}
alias = "eks_cluster_1"
}
provider "helm" {
kubernetes {
host = data.aws_eks_cluster.eks_cluster_2.endpoint
cluster_ca_certificate = base64decode(data.aws_eks_cluster.eks_cluster_2.certificate_authority[0].data)
token = data.aws_eks_cluster_auth.eks_cluster_2.token
}
alias = "eks_cluster_2"
}
provider "aws" {
region = var.eks_cluster_1_region
alias = "eks_cluster_1"
}
provider "aws" {
region = var.eks_cluster_2_region
alias = "eks_cluster_2"
}
provider "grafana" {
url = module.aws_observability_accelerator.managed_grafana_workspace_endpoint
auth = var.grafana_api_key
}