This repository contains:
- flannel (https://github.com/coreos/flannel)
- metallb (https://github.com/google/metallb)
- ingress-nginx (https://github.com/kubernetes/ingress-nginx)
- rook (https://github.com/rook/rook)
- dashboard (https://github.com/kubernetes/dashboard)
- kube-prometheus (https://github.com/coreos/kube-prometheus)
http://alertmanager.cluster.lc
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 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
Create a single master cluster, then run:
$ build.sh
and setup hosts.
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