Skip to content

Commit d44b2f3

Browse files
committed
Enable k8s cluster
1 parent 6d139b8 commit d44b2f3

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

modules/k8s/default.nix

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,8 @@
3535
};
3636

3737
services.k3s = k3sConfig // {
38-
enable = false; # TODO re-enable later once we sort disks out
38+
enable = true;
3939
disable = [ "local-storage" ]; # we are using Rook/Ceph instead
4040
tokenFile = config.sops.secrets.k3sToken.path;
41-
42-
# TODO do we need these?
43-
# extraFlags = [
44-
# "--etcd-arg --election-timeout=5000" # default is 1000ms
45-
# "--etcd-arg --heartbeat-interval=500" # default is 100ms
46-
# ];
4741
};
4842
}

modules/k8s/leader.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ let
33
immichTag = "v2.5.2";
44
immichPostgresImage = "ghcr.io/tensorchord/cloudnative-vectorchord:18.1-1.0.0";
55
immichLibraryPvcName = "immich-library-pvc"; # WARN: DO NOT CHANGE!!
6-
immichLibraryPvcSize = "4Gi"; # WARN: increase only; do not decrease!
7-
immichPostgresDbSize = "4Gi"; # WARN: increase only; do not decrease!
6+
immichLibraryPvcSize = "16Gi"; # WARN: increase only; do not decrease!
7+
immichPostgresDbSize = "2Gi"; # WARN: increase only; do not decrease!
88
in
99
{
1010
services.k3s = {
@@ -177,7 +177,7 @@ in
177177
createNamespace = true;
178178
values = {
179179
# https://github.com/cloudnative-pg/charts/blob/main/charts/cluster/values.yaml
180-
cluster.instances = 1;
180+
cluster.instances = 3;
181181
cluster.imageName = immichPostgresImage;
182182
cluster.storage.size = immichPostgresDbSize;
183183
cluster.storage.storageClass = "ceph-block";

0 commit comments

Comments
 (0)