feature: Adds kubesync script.
This commit is contained in:
parent
3f56dde55c
commit
4f774732ea
4 changed files with 497 additions and 0 deletions
12
kubernetes/dashboard/adminuser.yml
Normal file
12
kubernetes/dashboard/adminuser.yml
Normal 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
|
34
kubernetes/dashboard/project.ini
Normal file
34
kubernetes/dashboard/project.ini
Normal 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
|
Reference in a new issue