refactor: move resorces and policies to system
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./oceanbox/network
|
||||
# ./oceanbox/kyverno
|
||||
];
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
{ ... }:
|
||||
{
|
||||
imports = [
|
||||
./external-ceph.nix
|
||||
./microsoftonline.nix
|
||||
];
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{ ... }:
|
||||
{
|
||||
applications.netpol-external-ceph = {
|
||||
resources = {
|
||||
ciliumClusterwideNetworkPolicies = {
|
||||
allow-external-ceph-egress.spec = {
|
||||
egress = [
|
||||
{
|
||||
toCIDR = [
|
||||
"10.255.241.30/32"
|
||||
"10.255.241.31/32"
|
||||
"10.255.241.32/32"
|
||||
"10.255.244.0/24"
|
||||
];
|
||||
}
|
||||
];
|
||||
endpointSelector = { };
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,21 +0,0 @@
|
||||
{ ... }:
|
||||
{
|
||||
applications.netpol-microsoftonline = {
|
||||
project = "netpol";
|
||||
resources = {
|
||||
ciliumClusterwideNetworkPolicies = {
|
||||
allow-microsoftonline.spec = {
|
||||
endpointSelector = { };
|
||||
egress = [
|
||||
{
|
||||
toFQDNs = [
|
||||
{ matchName = "login.microsoftonline.com"; }
|
||||
{ matchPattern = "*.microsoftonline.com"; }
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,12 +0,0 @@
|
||||
{ ... }:
|
||||
{
|
||||
applications.xxx = {
|
||||
resources = {
|
||||
ciliumClusterwideNetworkPolicies = {
|
||||
xxx.spec =
|
||||
{
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user