deploy k8s using rke-provider

This commit is contained in:
Julian Tölle 2019-05-13 01:05:58 +02:00
parent 2a2d951971
commit 0f08cfb0d2
14 changed files with 167 additions and 153 deletions

32
dashboard.tf Normal file
View 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"
}
}