blob: ae09fc7a66f2f6c28de412b28856dc1b9a50e31e [file] [log] [blame]
Sergiusz Bazanskide061802019-01-13 21:14:02 +01001HSCloud Clusters
2================
3
4Current cluster: `k0.hswaw.net`
5
6Accessing via kubectl
7---------------------
8
Sergiusz Bazanskib13b7ff2019-08-29 20:12:24 +02009 prodaccess # get a short-lived certificate for your use via SSO
Sergiusz Bazanskide061802019-01-13 21:14:02 +010010 kubectl get nodes
11
Sergiusz Bazanskib13b7ff2019-08-29 20:12:24 +020012Persistent Storage
Sergiusz Bazanskide061802019-01-13 21:14:02 +010013------------------
14
Sergiusz Bazanski2fd58612019-04-02 14:45:17 +020015HDDs on bc01n0{1-3}. 3TB total capacity.
16
17The following storage classes use this cluster:
18
Sergiusz Bazanskib13b7ff2019-08-29 20:12:24 +020019 - `waw-hdd-paranoid-1` - 3 replicas
Sergiusz Bazanski2fd58612019-04-02 14:45:17 +020020 - `waw-hdd-redundant-1` - erasure coded 2.1
Sergiusz Bazanski36cc4fb2019-05-17 18:08:48 +020021 - `waw-hdd-yolo-1` - unreplicated (you _will_ lose your data)
Piotr Dobrowolski56918232019-04-09 23:48:33 +020022 - `waw-hdd-redundant-1-object` - erasure coded 2.1 object store
Sergiusz Bazanski2fd58612019-04-02 14:45:17 +020023
24A dashboard is available at https://ceph-waw1.hswaw.net/, to get the admin password run:
25
26 kubectl -n ceph-waw1 get secret rook-ceph-dashboard-password -o yaml | grep "password:" | awk '{print $2}' | base64 --decode ; echo
27
Piotr Dobrowolski56918232019-04-09 23:48:33 +020028Rados Gateway (S3) is available at https://object.ceph-waw1.hswaw.net/. To create
29an object store user consult rook.io manual (https://rook.io/docs/rook/v0.9/ceph-object-store-user-crd.html)
30User authentication secret is generated in ceph cluster namespace (`ceph-waw1`),
31thus may need to be manually copied into application namespace. (see
32`app/registry/prod.jsonnet` comment)
33
34`tools/rook-s3cmd-config` can be used to generate test configuration file for s3cmd.
35Remember to append `:default-placement` to your region name (ie. `waw-hdd-redundant-1-object:default-placement`)
Sergiusz Bazanskib13b7ff2019-08-29 20:12:24 +020036
37Administration
38==============
39
40Provisioning nodes
41------------------
42
43 - bring up a new node with nixos, running the configuration.nix from bootstrap (to be documented)
44 - `bazel run //cluster/clustercfg:clustercfg nodestrap bc01nXX.hswaw.net`
45
46That's it!
47
48Ceph
49====
50
51We run Ceph via Rook. The Rook operator is running in the `ceph-rook-system` namespace. To debug Ceph issues, start by looking at its logs.
52
53The following Ceph clusters are available:
54