mirror of
https://git.sr.ht/~goorzhel/turboprop
synced 2024-12-14 11:37:37 +00:00
Add Kiali
This commit is contained in:
parent
dbb65668ee
commit
e48d34df84
1 changed files with 44 additions and 0 deletions
44
releases/istio-system/kiali/default.nix
Normal file
44
releases/istio-system/kiali/default.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
charts,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
# TODO: borrow more directly from lib/rake.nix.
|
||||
ls = dir: with builtins; attrNames (readDir dir);
|
||||
|
||||
revision =
|
||||
# Won't guarantee latest rev due to ASCIIbetical order,
|
||||
# but will guarantee _a_ rev. The only time there's
|
||||
# more than one is during upgrades anyway.
|
||||
pkgs.lib.lists.last
|
||||
(builtins.filter (x: x != "kiali") (ls ./..));
|
||||
in {
|
||||
builder = lib.builders.helmChart;
|
||||
args = {
|
||||
chart = charts.kiali.operator;
|
||||
|
||||
values = {
|
||||
image.tag = "v1.65.0";
|
||||
fullnameOverride = "kiali-operator";
|
||||
};
|
||||
|
||||
values.cr = {
|
||||
create = true;
|
||||
namespace = "istio-system";
|
||||
spec = {
|
||||
auth.strategy = "anonymous";
|
||||
deployment.accessible_namespaces = ["**"];
|
||||
external_services = {
|
||||
istio = {
|
||||
config_map_name = "istio-${revision}";
|
||||
istio_sidecar_injector_config_map_name = "istio-sidecar-injector-${revision}";
|
||||
istiod_deployment_name = "istiod-${revision}";
|
||||
};
|
||||
prometheus.url = "http://kube-prometheus-stack-prometheus.monitoring:9090";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
extraObjects = [(lib.eureka.resources.mkSvcHTTPRoute "kiali" "kiali" 20001)];
|
||||
}
|
Loading…
Reference in a new issue