Split nixops deployments.
This commit is contained in:
4
deploy.sh
Executable file
4
deploy.sh
Executable file
@@ -0,0 +1,4 @@
|
||||
#!/sur/bin/bash
|
||||
|
||||
nixops modify -d $1 $1.nix
|
||||
nixops deploy -d $1
|
||||
7
git.nix
Normal file
7
git.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
git01 = { config, lib, pkgs, ... }:
|
||||
{
|
||||
deployment.targetHost = "10.253.18.103";
|
||||
imports = [ ./git01/configuration.nix ];
|
||||
};
|
||||
}
|
||||
@@ -1,25 +1,19 @@
|
||||
{
|
||||
kube01 = { config, lib, pkgs, ... }:
|
||||
{
|
||||
deployment.targetHost = "10.253.18.100";
|
||||
imports = [ ./k8s01/configuration.nix ];
|
||||
};
|
||||
|
||||
kube02 = { config, lib, pkgs, ... }:
|
||||
{
|
||||
deployment.targetHost = "10.253.18.102";
|
||||
imports = [ ./k8s02/configuration.nix ];
|
||||
};
|
||||
|
||||
kubemaster = { config, lib, pkgs, ... }:
|
||||
k8s00 = { config, lib, pkgs, ... }:
|
||||
{
|
||||
deployment.targetHost = "10.253.18.101";
|
||||
imports = [ ./k8s00/configuration.nix ];
|
||||
};
|
||||
|
||||
git01 = { config, lib, pkgs, ... }:
|
||||
k8s01 = { config, lib, pkgs, ... }:
|
||||
{
|
||||
deployment.targetHost = "10.253.18.103";
|
||||
imports = [ ./git01/configuration.nix ];
|
||||
deployment.targetHost = "10.253.18.100";
|
||||
imports = [ ./k8s01/configuration.nix ];
|
||||
};
|
||||
|
||||
k8s02 = { config, lib, pkgs, ... }:
|
||||
{
|
||||
deployment.targetHost = "10.253.18.102";
|
||||
imports = [ ./k8s02/configuration.nix ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user