28 lines
472 B
Markdown
28 lines
472 B
Markdown
# Kubernetes NixOps cluster setup
|
|
|
|
|
|
## Prerequisites
|
|
|
|
1. Install n basic nodes (node-1, ..., node-n) running nixos.
|
|
|
|
``sh
|
|
git submodule init
|
|
git submodule update
|
|
``
|
|
|
|
|
|
## Installation
|
|
|
|
``sh
|
|
cd clusters
|
|
cp -r template cluster-1
|
|
cd cluster-1
|
|
../../bin/initca.sh # generates the cluster wide CA certificate
|
|
for i in node-1 node-2 node-3; do
|
|
scp $i:/etc/nixos/hardware-confifuration.nix $i.nix
|
|
done
|
|
vi default.nix # add nodes and ip:s, etc.
|
|
../../bin/deploy.sh cluster-1
|
|
``
|
|
|