{"id":20724654,"url":"https://github.com/arhea/aws-cdk-eks-dashboard","last_synced_at":"2025-10-23T02:36:31.466Z","repository":{"id":36038466,"uuid":"221004215","full_name":"arhea/aws-cdk-eks-dashboard","owner":"arhea","description":"An AWS CDK construct to deploy the Kubernetes Dashboard to EKS.","archived":false,"fork":false,"pushed_at":"2023-01-05T00:45:29.000Z","size":1387,"stargazers_count":2,"open_issues_count":16,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-09T02:09:28.608Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arhea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-11T14:53:48.000Z","updated_at":"2021-08-18T19:56:26.000Z","dependencies_parsed_at":"2023-01-16T12:16:07.827Z","dependency_job_id":null,"html_url":"https://github.com/arhea/aws-cdk-eks-dashboard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Faws-cdk-eks-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Faws-cdk-eks-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Faws-cdk-eks-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arhea%2Faws-cdk-eks-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arhea","download_url":"https://codeload.github.com/arhea/aws-cdk-eks-dashboard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224717817,"owners_count":17357914,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T04:15:51.743Z","updated_at":"2025-10-23T02:36:31.376Z","avatar_url":"https://github.com/arhea.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS CDK EKS Kubernetes Dashboard\n\nThis module makes it easy to deploy and manage the Kubernetes Dashboard from AWS CDK for your EKS clusters. This module is designed based on the guidance provided in the [AWS EKS Workshop](https://eksworkshop.com/dashboard/dashboard/). This Construct will perform the following tasks:\n\n- Deploy the Dashboard Kubernetes Manifest as defined by the open source project.\n\n## Installation\n\nYou can install this with `npm` or `yarn`.\n\n```bash\nnpm i `@arhea/aws-cdk-eks-dashboard` --save\n```\n\nor\n\n```bash\nyarn add `@arhea/aws-cdk-eks-dashboard`\n```\n\n## Usage\n\n```typescript\nimport { ClusterAutoscaler } from '@arhea/aws-cdk-eks-dashboard';\n\nconst csa = new KubernetesDashboard(this, 'demo-dashboard', {\n  cluster: cluster, // your EKS cluster\n  version: 'v1.10.1' // the version of dashboard to deploy\n});\n```\n\n| Option | Description | Default |\n|---|---|---|\n| `cluster` | The `@aws-cdk/aws-eks` cluster instance where this Dashboard should be deployed. | N/A |\n| `version` | The version of the Dashboard to deploy. Find the latest version based on your Kubernetes [version here](https://github.com/kubernetes/dashboard).  | `v1.10.1` |\n'\n\nTo access the dashboard run `kubectl proxy` and navigate to `http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/`. You will be prompted to login, select `Token`. Run the token command that was output from the `cdk deploy`, it should look something like this:\n\n```bash\nDemoEKS.demoeksclusterGetTokenCommand4F0892F7 = aws eks get-token --cluster-name cluster-815c9727-e20b-4bb6-807b-b3269575c82e --region us-east-2 --role-arn arn:aws:iam::\u003cAccount ID\u003e:role/DemoEKS-AdminRole38563C57-1QETBYLXWQ2E --profile demo | jq -r '.status.token'\n```\n\n## Full Example\n\n```typescript\n\n// create a vpc to deploy eks\nconst vpc = new ec2.Vpc(this, 'example-vpc', {\n  cidr: '10.1.0.0/16',\n  maxAzs: 3,\n  enableDnsHostnames: true,\n  enableDnsSupport: true\n});\n\n// define an admin role to use, to enable kubectl\nconst clusterAdmin = new iam.Role(this, 'AdminRole', {\n  assumedBy: new iam.AccountRootPrincipal()\n});\n\n// create the cluster\nconst cluster = new eks.Cluster(this, 'example-cluster', {\n  mastersRole: clusterAdmin,\n  vpc: vpc,\n  vpcSubnets: [\n    {\n      subnetType: ec2.SubnetType.PRIVATE\n    }\n  ],\n  defaultCapacity: 0\n});\n\n\n// create a custom node group\nconst ng = cluster.addCapacity('demo-ng1', {\n  instanceType: ec2.InstanceType.of(ec2.InstanceClass.T2, ec2.InstanceSize.LARGE),\n  associatePublicIpAddress: false,\n  bootstrapEnabled: true,\n  desiredCapacity: 3,\n  minCapacity: 3,\n  maxCapacity: 6,\n  mapRole: true\n});\n\n// create the kubernetes dashboard instance\nconst csa = new KubernetesDashboard(this, 'demo-dashboard', {\n  cluster: cluster // your EKS cluster\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farhea%2Faws-cdk-eks-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farhea%2Faws-cdk-eks-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farhea%2Faws-cdk-eks-dashboard/lists"}