Skip to content

Repository files navigation

terraform-aws-eks-dashboard

Lint Status LICENSE

Terraform module for deploying kubernetes-dashboard inside a pre-existing EKS cluster.

Dashboard UI workloads page

In case you have enabled the creation of the sample user, you can retrieve the token running: kubectl -n kubernetes-dashboard describe secret $(kubectl -n kubernetes-dashboard get secret | awk '/^admin-user-token-/{print $1}') | awk '$1=="token:"{print $2}'

When the deployment is complete, now access Dashboard at: http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:https/proxy

Usage

module "eks_dashboard" {
  source = "git::https://github.com/DNXLabs/terraform-aws-eks-dashboard.git"

  enabled             = true
  sample_user_enabled = true
}

output "dashboard_url" {
  value = module.eks_dashboard.dashboard_url
}

See more examples of usage.

Requirements

Name Version
terraform >= 0.13
aws >= 4.0.0, < 5.46.0
helm >= 1.0, < 3.0
kubernetes >= 1.10.0, < 3.0.0

Providers

Name Version
helm >= 1.0, < 3.0
kubernetes >= 1.10.0, < 3.0.0

Inputs

Name Description Type Default Required
create_namespace Whether to create k8s namespace with name defined by namespace. bool true no
enabled n/a bool true no
helm_chart_name EKS Dashboard chart name. string "kubernetes-dashboard" no
helm_chart_release_name EKS Dashboard release name. string "kubernetes-dashboard" no
helm_chart_repo EKS Dashboard repository name. string "https://kubernetes.github.io/dashboard" no
helm_chart_version EKS Dashboard chart version. string "4.0.0" no
mod_dependency Dependence variable binds all AWS resources allocated by this module, dependent modules reference this variable. any null no
namespace Kubernetes namespace to deploy EKS Spot termination handler Helm chart. string "kubernetes-dashboard" no
sample_user_enabled Whether to create k8s sample admin user and generate Bearer Token to access dashboard. bool false no
service_account_name EKS dashboard service account name. string "kubernetes-dashboard" no
settings Additional settings which will be passed to the Helm chart values, see https://artifacthub.io/packages/helm/k8s-dashboard/kubernetes-dashboard. map {} no

Outputs

Name Description
dashboard_url n/a

Authors

Module managed by DNX Solutions.

License

Apache 2 Licensed. See LICENSE for full details.

About

Terraform module for deploying kubernetes-dashboard inside a pre-existing EKS cluster.

Topics

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages