4
0
Fork 2
mirror of https://gerrit.hackerspace.pl/hscloud synced 2024-10-19 14:27:44 +00:00
Find a file
Sergiusz Bazanski c78cc13528 cluster/nix: locally build nixos derivations
We change the existing behaviour (copy files & run nixos-rebuild switch)
to something closer to nixops-style. This now means that provisioning
admin machines need Nix installed locally, but that's probably an okay
choice to make.

The upside of this approach is that it's easier to debug and test
derivations, as all data is local to the repo and the workstation, and
deploying just means copying a configuration closure and switching the
system to it. At some point we should even be able to run the entire
cluster within a set of test VMs.

We also bump the kubernetes control plane to 1.14. Kubelets are still at
1.13 and their upgrade is comint up today too.

Change-Id: Ia9832c47f258ee223d93893d27946d1161cc4bbd
2020-02-02 22:31:53 +01:00
app {matrix,lelegram}: pin to bc01n0{1,2}.hswaw.net 2020-01-08 13:59:04 +01:00
bgpwtf bgpwtf/invoice: bump for 2020 2020-01-14 14:03:38 +01:00
bzl go/{mirko,statusz}: better status, kubernetes client 2019-07-21 23:54:41 +02:00
cluster cluster/nix: locally build nixos derivations 2020-02-02 22:31:53 +01:00
dc dc/arista-proxy: fix by using github.com/q3k/cursedjson 2019-09-26 18:32:39 +02:00
devtools Draw the actual rest of the fucking owl. 2019-08-22 18:14:35 +02:00
gcp secretstore: add implr 2019-05-18 00:15:25 +02:00
go go/{mirko,statusz}: enable profiling 2020-01-23 14:17:30 +01:00
hswaw lelegram: disable 2020-02-02 17:16:17 +01:00
kube postgres: run unprivilged 2020-01-22 21:48:48 +01:00
personal/q3k teleimg: fix RE for IRC names 2020-02-02 16:58:57 +01:00
third_party third_party/py: add wtforms 2019-12-19 18:29:45 +01:00
tools *: add dcr01s{22,24} 2019-10-31 17:07:50 +01:00
.bazelrc smsgw: productionize, implement kube/mirko 2019-10-04 13:52:34 +02:00
.gitignore bgpwtf/cccampix/pgpencryptor: add service base 2019-08-10 10:51:07 -07:00
BUILD *: move away from python_rules 2019-07-16 22:22:05 +00:00
COPYING isc license 2018-10-25 14:25:36 +02:00
env.sh tools: move cluster-specific stuff to cluster/tools 2019-07-21 14:26:51 +00:00
README Get in the Cluster, Benji! 2019-09-02 16:33:02 +02:00
WORKSPACE personal/q3k: bump factorio 2020-01-14 13:47:26 +01:00

HSCloud
=======

This is a monorepo. You'll need bash and Bazel 0.20.0+ to use it.

You'll also need Nix installed globally in your system until [rules_nixpkgs/75](https://github.com/tweag/rules_nixpkgs/issues/75) is resolved. Or run on NixOS.

Getting started
---------------

    cd hscloud
    . env.sh # setup PATH and hscloud_root
    tools/install.sh # build tools


Then, to get Kubernetes access to k0.hswaw.net (current nearly-production cluster):

    prodaccess
    kubectl version

You will automatically get a `personal-$USERNAME` namespace created in which you have full admin rights.

For mor information about the cluster, see [cluster/README].