photoncloud-monorepo/nix/nodes/vm-cluster/cluster.nix
2026-04-04 16:33:03 +09:00

25 lines
566 B
Nix

{ lib, ... }:
let
vmCluster = import ./lib.nix { inherit lib; };
in
{
ultracloud.cluster = {
enable = true;
name = vmCluster.clusterName;
nodes = vmCluster.clusterNodes;
deployer = {
clusterId = vmCluster.clusterId;
environment = vmCluster.environment;
nodeClasses.control-plane = vmCluster.controlPlaneNodeClass;
pools.control = vmCluster.controlPlanePool;
hostDeployments = vmCluster.hostDeployments;
};
bootstrap.initialPeers = vmCluster.controlPlaneNodeNames;
bgp.asn = vmCluster.bgpAsn;
};
}