feature: Adds kubesync script.

This commit is contained in:
greysoh 2024-07-15 16:29:32 -04:00
parent 3f56dde55c
commit 4f774732ea
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
4 changed files with 497 additions and 0 deletions

View file

@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: admin-user
namespace: kubernetes-dashboard

View file

@ -0,0 +1,34 @@
[meta]
format_ver = 1
### Dashboard
[k3s_dash_repo]
description = Kubernetes Dashboard Repository
mode = helm
[#k3s_dash_repo/helm]
mode = add_repo
name = kubernetes-dashboard
repo = https://kubernetes.github.io/dashboard/
[k3s_dash]
description = Kubernetes Dashboard
mode = helm
depends_on = k3s_dash_repo
[#k3s_dash/helm]
mode = install
name = kubernetes-dashboard
repo = kubernetes-dashboard/kubernetes-dashboard
namespace = kubernetes-dashboard
create_namespace = true
### Users
[k3s_dash_admin_user]
description = Kubernetes Dashboard Admin Account
mode = k3s
depends_on = k3s_dash
[#k3s_dash_admin_user/k3s]
mode = install
yml_path = ./adminuser.yml