Skip to content

Ready-to-use Kubernetes cluster with Dashboard, Ceph, Grafana, Prometheus, AlertManager

License

Notifications You must be signed in to change notification settings

evldvl10/kube-operator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kube-operator

This repository contains:

Management

Dashboard

https://192.168.0.107:30000

screenshot

Ceph

http://ceph.cluster.lc

screenshot

Grafana

http://grafana.cluster.lc

screenshot

Prometheus

http://prometheus.cluster.lc

screenshot

AlertManager

http://alertmanager.cluster.lc

screenshot

Credentials

Get dashboard token

$ kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk '{print $1}')

Get Ceph "admin" password

kubectl -n rook-ceph get secret rook-ceph-dashboard-password -o jsonpath="{['data']['password']}" | base64 --decode && echo

Use admin/admin to access "Prometheus", "Grafana", "AlertManager" management systems.

Install dependencies

Install Go, then run:

$ go get github.com/google/go-jsonnet/cmd/jsonnet
$ go get github.com/brancz/gojsontoyaml
$ go get github.com/jsonnet-bundler/jsonnet-bundler/cmd/jb
$ go get sigs.k8s.io/kustomize

Build

Create a single master cluster, then run:

$ build.sh

and setup hosts.

To fix the bug with dashboards in the Ceph control panel

Connect to toolbox

$ kubectl -n rook-ceph exec -it $(kubectl -n rook-ceph get pod -l "app=rook-ceph-tools" -o jsonpath='{.items[0].metadata.name}') bash

and run commands

ceph dashboard ac-role-create admin-no-iscsi

for scope in dashboard-settings log rgw prometheus grafana nfs-ganesha manager hosts rbd-image config-opt rbd-mirroring cephfs user osd pool monitor; do
    ceph dashboard ac-role-add-scope-perms admin-no-iscsi ${scope} create delete read update;
done

ceph dashboard ac-user-set-roles admin admin-no-iscsi

More info: rook/rook#3106

About

Ready-to-use Kubernetes cluster with Dashboard, Ceph, Grafana, Prometheus, AlertManager

Resources

License

Stars

Watchers

Forks

Packages

No packages published