tokyo/ibiza endpoints
This commit is contained in:
parent
94b5e3615d
commit
b4d1c38472
|
@ -12,6 +12,18 @@ let
|
||||||
port = 8080;
|
port = 8080;
|
||||||
protocol = "HTTP";
|
protocol = "HTTP";
|
||||||
};
|
};
|
||||||
|
"tokyo" = {
|
||||||
|
location = "192.168.50.124";
|
||||||
|
host = "tokyo.gmem.ca";
|
||||||
|
port = 8000;
|
||||||
|
protocol = "HTTP";
|
||||||
|
};
|
||||||
|
"ibiza" = {
|
||||||
|
location = "192.168.50.182";
|
||||||
|
host = "ibiza.gmem.ca";
|
||||||
|
port = 8000;
|
||||||
|
protocol = "HTTP";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
kubernetes.resources.services = builtins.mapAttrs (name: endpoint: {
|
kubernetes.resources.services = builtins.mapAttrs (name: endpoint: {
|
||||||
|
@ -30,6 +42,7 @@ in {
|
||||||
}) endpoints;
|
}) endpoints;
|
||||||
kubernetes.resources.ingresses = builtins.mapAttrs (name: endpoint: {
|
kubernetes.resources.ingresses = builtins.mapAttrs (name: endpoint: {
|
||||||
metadata = { name = name; annotations = {
|
metadata = { name = name; annotations = {
|
||||||
|
"nginx.ingress.kubernetes.io/proxy-body-size" = "10g";
|
||||||
"cert-manager.io/issuer" = "le-issuer";
|
"cert-manager.io/issuer" = "le-issuer";
|
||||||
"nginx.ingress.kubernetes.io/backend-protocol" = endpoint.protocol;
|
"nginx.ingress.kubernetes.io/backend-protocol" = endpoint.protocol;
|
||||||
}; };
|
}; };
|
||||||
|
|
Loading…
Reference in a new issue