Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 1 | HSCloud Clusters |
| 2 | ================ |
| 3 | |
| 4 | Current cluster: `k0.hswaw.net` |
| 5 | |
| 6 | Accessing via kubectl |
| 7 | --------------------- |
| 8 | |
| 9 | There isn't yet a service for getting short-term user certificates. Instead, you'll have to get admin certificates: |
| 10 | |
Sergiusz Bazanski | 73cef11 | 2019-04-07 00:06:23 +0200 | [diff] [blame] | 11 | bazel run //cluster/clustercfg:clustercfg admincreds $(whoami)-admin |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 12 | kubectl get nodes |
| 13 | |
| 14 | Provisioning nodes |
| 15 | ------------------ |
| 16 | |
| 17 | - bring up a new node with nixos, running the configuration.nix from bootstrap (to be documented) |
Sergiusz Bazanski | 73cef11 | 2019-04-07 00:06:23 +0200 | [diff] [blame] | 18 | - `bazel run //cluster/clustercfg:clustercfg nodestrap bc01nXX.hswaw.net` |
Sergiusz Bazanski | de06180 | 2019-01-13 21:14:02 +0100 | [diff] [blame] | 19 | |
| 20 | That's it! |
Sergiusz Bazanski | 2fd5861 | 2019-04-02 14:45:17 +0200 | [diff] [blame] | 21 | |
| 22 | Ceph |
| 23 | ==== |
| 24 | |
| 25 | We 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. |
| 26 | |
| 27 | The following Ceph clusters are available: |
| 28 | |
| 29 | ceph-waw1 |
| 30 | --------- |
| 31 | |
| 32 | HDDs on bc01n0{1-3}. 3TB total capacity. |
| 33 | |
| 34 | The following storage classes use this cluster: |
| 35 | |
| 36 | - `waw-hdd-redundant-1` - erasure coded 2.1 |
Sergiusz Bazanski | 36cc4fb | 2019-05-17 18:08:48 +0200 | [diff] [blame] | 37 | - `waw-hdd-yolo-1` - unreplicated (you _will_ lose your data) |
Piotr Dobrowolski | 5691823 | 2019-04-09 23:48:33 +0200 | [diff] [blame] | 38 | - `waw-hdd-redundant-1-object` - erasure coded 2.1 object store |
Sergiusz Bazanski | 2fd5861 | 2019-04-02 14:45:17 +0200 | [diff] [blame] | 39 | |
| 40 | A dashboard is available at https://ceph-waw1.hswaw.net/, to get the admin password run: |
| 41 | |
| 42 | kubectl -n ceph-waw1 get secret rook-ceph-dashboard-password -o yaml | grep "password:" | awk '{print $2}' | base64 --decode ; echo |
| 43 | |
Piotr Dobrowolski | 5691823 | 2019-04-09 23:48:33 +0200 | [diff] [blame] | 44 | Rados Gateway (S3) is available at https://object.ceph-waw1.hswaw.net/. To create |
| 45 | an object store user consult rook.io manual (https://rook.io/docs/rook/v0.9/ceph-object-store-user-crd.html) |
| 46 | User authentication secret is generated in ceph cluster namespace (`ceph-waw1`), |
| 47 | thus may need to be manually copied into application namespace. (see |
| 48 | `app/registry/prod.jsonnet` comment) |
| 49 | |
| 50 | `tools/rook-s3cmd-config` can be used to generate test configuration file for s3cmd. |
| 51 | Remember to append `:default-placement` to your region name (ie. `waw-hdd-redundant-1-object:default-placement`) |