feat: initial istio support

This commit is contained in:
Jaka Hudoklin 2019-02-11 21:21:07 +01:00
parent 606dbc2082
commit ff66b0e0c3
No known key found for this signature in database
GPG key ID: 6A08896BFD32BD95
5 changed files with 9430 additions and 0 deletions

View file

@ -27,6 +27,7 @@ in {
imports = [
kubenix.k8s
kubenix.submodules
kubenix.istio
];
config = {
@ -95,6 +96,32 @@ in {
submodule = "test";
};
kubernetes.api."networking.istio.io"."v1alpha3".Gateway.test.spec = {
selector.istio = "ingressgateway";
servers = [{
port = {
number = 80;
name = "http";
protocol = "HTTP";
};
hosts = ["host.example.com"];
tls.httpsRedirect = true;
} {
port = {
number = 443;
name = "https";
protocol = "HTTPS";
};
hosts = ["host.example.com"];
tls = {
mode = "SIMPLE";
serverCertificate = "/path/to/server.crt";
privateKey = "/path/to/private.key";
caCertificates = "/path/to/ca.crt";
};
}];
};
#kubernetes.api."cloud.google.com".v1beta1.BackendConfig.my-backend = {
#};