Skip to content

Commit

Permalink
Merge pull request hashicorp-education#5 from hashicorp/enable-k8s-da…
Browse files Browse the repository at this point in the history
…shboard

Enable k8s dashboard in AKS cluster
  • Loading branch information
im2nguyen authored Oct 19, 2020
2 parents b0be6f4 + e41b8d2 commit 998be61
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ To use the Kubernetes dashboard, we need to create a `ClusterRoleBinding`. This
gives the `cluster-admin` permission to access the `kubernetes-dashboard`.

```shell
$ kubectl create clusterrolebinding kubernetes-dashboard --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard
$ kubectl create clusterrolebinding kubernetes-dashboard --clusterrole=cluster-admin --serviceaccount=kube-system:kubernetes-dashboard --user=clusterUser
clusterrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created
```

Expand Down
6 changes: 6 additions & 0 deletions aks-cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ resource "azurerm_kubernetes_cluster" "default" {
enabled = true
}

addon_profile {
kube_dashboard {
enabled = true
}
}

tags = {
environment = "Demo"
}
Expand Down
2 changes: 1 addition & 1 deletion terraform.tfvars
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
appId = "aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaaa"
password = "********-****-****-****-************"
password = "********-****-****-****-************"

0 comments on commit 998be61

Please sign in to comment.