mirror of
https://github.com/apricote/home-cloud.git
synced 2026-01-13 21:11:02 +00:00
deploy k8s using rke-provider
This commit is contained in:
parent
2a2d951971
commit
0f08cfb0d2
14 changed files with 167 additions and 153 deletions
32
dashboard.tf
Normal file
32
dashboard.tf
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
resource "kubernetes_service_account" "dashboard" {
|
||||
metadata {
|
||||
name = "dashboard-admin"
|
||||
namespace = "kube-system"
|
||||
|
||||
labels = {
|
||||
app = "dashboard"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
resource "kubernetes_cluster_role_binding" "dashboard" {
|
||||
metadata {
|
||||
name = "dashboard-admin"
|
||||
|
||||
labels = {
|
||||
app = "dashboard"
|
||||
}
|
||||
}
|
||||
|
||||
role_ref {
|
||||
api_group = "rbac.authorization.k8s.io"
|
||||
kind = "ClusterRole"
|
||||
name = "cluster-admin"
|
||||
}
|
||||
|
||||
subject {
|
||||
kind = "ServiceAccount"
|
||||
name = "dashboard-admin"
|
||||
namespace = "kube-system"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue