Terraform module for deploying kubernetes-dashboard inside a pre-existing EKS cluster.
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
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
}
| Name | Version |
|---|---|
| terraform | >= 0.13 |
| aws | >= 4.0.0, < 5.46.0 |
| helm | >= 1.0, < 3.0 |
| kubernetes | >= 1.10.0, < 3.0.0 |
| Name | Version |
|---|---|
| helm | >= 1.0, < 3.0 |
| kubernetes | >= 1.10.0, < 3.0.0 |
| 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 |
| Name | Description |
|---|---|
| dashboard_url | n/a |
Module managed by DNX Solutions.
Apache 2 Licensed. See LICENSE for full details.
