Skip to content

Commit

Permalink
Merge branch 'subcharts' of github.com:fastmachinelearning/SuperSONIC…
Browse files Browse the repository at this point in the history
… into subcharts
  • Loading branch information
kondratyevd committed Feb 12, 2025
2 parents e984033 + aa570b2 commit b31957f
Show file tree
Hide file tree
Showing 2 changed files with 292 additions and 3 deletions.
6 changes: 4 additions & 2 deletions docs/.values-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,15 @@
| autoscaler.scaleDown.window | int | `600` | |
| autoscaler.scaleDown.period | int | `120` | |
| autoscaler.scaleDown.stepsize | int | `1` | |
| prometheus | object | `{"external":true,"ingress":{"annotations":{},"enabled":false,"hostName":"","ingressClassName":""},"port":443,"scheme":"https","serverLoadMetric":"","serverLoadThreshold":100,"url":""}` | Connection to a Prometheus server is required for KEDA autoscaler and Envoy's prometheus-based rate limiter |
| prometheus | object | `{"alertmanager":{"enabled":false},"configmapReload":{"prometheus":{"enabled":false}},"enabled":false,"external":true,"ingress":{"annotations":{},"enabled":false,"hostName":"","ingressClassName":""},"kube-state-metrics":{"enabled":false},"port":443,"prometheus-node-exporter":{"enabled":false},"prometheus-pushgateway":{"enabled":false},"pushgateway":{"enabled":false},"rbac":{"create":false},"scheme":"https","server":{"configMapOverrideName":"prometheus-config","global":{"evaluation_interval":"5s","scrape_interval":"5s"},"ingress":{"annotations":{},"enabled":true,"hosts":[],"ingressClassName":"","tls":[{"hosts":[]}]},"persistentVolume":{"enabled":false},"releaseNamespace":true,"resources":{"limits":{"cpu":1,"memory":"1Gi"},"requests":{"cpu":"500m","memory":"512Mi"}},"retention":"15d","service":{"enabled":true,"servicePort":9090},"useExistingClusterRoleName":"supersonic-prometheus-role"},"serverLoadMetric":"","serverLoadThreshold":100,"serviceAccounts":{"server":{"create":false,"name":"supersonic-prometheus-sa"}},"url":""}` | Connection to a Prometheus server is required for KEDA autoscaler and Envoy's prometheus-based rate limiter |
| prometheus.external | bool | `true` | Whether to use external Prometheus instance (true) or deploy internal one (false) |
| prometheus.enabled | bool | `false` | Enable or disable Prometheus deployment via subchart |
| prometheus.url | string | `""` | External Prometheus server url and port number (find in documentation of a given cluster or ask admins) Only used when external=true |
| prometheus.scheme | string | `"https"` | Specify whether external Prometheus endpoint is exposed as http or https Only used when external=true |
| prometheus.serverLoadMetric | string | `""` | A metric used by both KEDA autoscaler and Envoy's prometheus-based rate limiter. # Default metric (inference queue latency) is defined in templates/_helpers.tpl |
| prometheus.serverLoadThreshold | int | `100` | Threshold for the metric |
| prometheus.ingress | object | `{"annotations":{},"enabled":false,"hostName":"","ingressClassName":""}` | Ingress configuration for internal Prometheus web UI (only used when external=false) |
| prometheus.server | object | `{"configMapOverrideName":"prometheus-config","global":{"evaluation_interval":"5s","scrape_interval":"5s"},"ingress":{"annotations":{},"enabled":true,"hosts":[],"ingressClassName":"","tls":[{"hosts":[]}]},"persistentVolume":{"enabled":false},"releaseNamespace":true,"resources":{"limits":{"cpu":1,"memory":"1Gi"},"requests":{"cpu":"500m","memory":"512Mi"}},"retention":"15d","service":{"enabled":true,"servicePort":9090},"useExistingClusterRoleName":"supersonic-prometheus-role"}` | Prometheus Helm chart configuration (https://github.com/prometheus-community/helm-charts/tree/main/charts/prometheus) |
| ingress.enabled | bool | `false` | |
| ingress.hostName | string | `""` | |
| ingress.ingressClassName | string | `""` | |
Expand All @@ -72,7 +74,7 @@
| grafana.persistence.enabled | bool | `false` | |
| grafana.rbac.create | bool | `false` | |
| grafana.serviceAccount.create | bool | `false` | |
| grafana.datasources | object | `{"datasources.yaml":{"apiVersion":1,"datasources":[{"access":"proxy","isDefault":true,"name":"prometheus","type":"prometheus"}]}}` | Grafana datasources configuration |
| grafana.datasources | object | `{"datasources.yaml":{"apiVersion":1,"datasources":[{"access":"proxy","isDefault":true,"jsonData":{"timeInterval":"5s","tlsSkipVerify":true},"name":"prometheus","type":"prometheus","url":"http://supersonic-prometheus-server:9090"}]}}` | Grafana datasources configuration |
| grafana.dashboardProviders | object | `{"dashboardproviders.yaml":{"apiVersion":1,"providers":[{"disableDeletion":false,"editable":true,"folder":"","name":"default","options":{"path":"/var/lib/grafana/dashboards/default"},"orgId":1,"type":"file"}]}}` | Grafana dashboard providers configuration |
| grafana.dashboardsConfigMaps | object | `{"default":"supersonic-grafana-default-dashboard"}` | Grafana dashboard ConfigMaps |
| grafana."grafana.ini" | object | `{"auth":{"disable_login_form":true},"auth.anonymous":{"enabled":true,"org_role":"Admin"},"dashboards":{"default_home_dashboard_path":"/var/lib/grafana/dashboards/default/default.json"}}` | Grafana.ini configuration |
Expand Down
289 changes: 288 additions & 1 deletion helm/supersonic/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,9 @@
"external": {
"type": "boolean"
},
"enabled": {
"type": "boolean"
},
"url": {
"type": "string"
},
Expand Down Expand Up @@ -436,15 +439,279 @@
"hostName",
"ingressClassName"
]
},
"server": {
"type": "object",
"properties": {
"useExistingClusterRoleName": {
"type": "string"
},
"releaseNamespace": {
"type": "boolean"
},
"persistentVolume": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
},
"required": [
"enabled"
]
},
"resources": {
"type": "object",
"properties": {
"requests": {
"type": "object",
"properties": {
"cpu": {
"type": "string"
},
"memory": {
"type": "string"
}
},
"required": [
"cpu",
"memory"
]
},
"limits": {
"type": "object",
"properties": {
"cpu": {
"type": "integer"
},
"memory": {
"type": "string"
}
},
"required": [
"cpu",
"memory"
]
}
},
"required": [
"limits",
"requests"
]
},
"retention": {
"type": "string"
},
"global": {
"type": "object",
"properties": {
"scrape_interval": {
"type": "string"
},
"evaluation_interval": {
"type": "string"
}
},
"required": [
"evaluation_interval",
"scrape_interval"
]
},
"service": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"servicePort": {
"type": "integer"
}
},
"required": [
"enabled",
"servicePort"
]
},
"configMapOverrideName": {
"type": "string"
},
"ingress": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"hosts": {
"type": "array"
},
"ingressClassName": {
"type": "string"
},
"annotations": {
"type": "object"
},
"tls": {
"type": "array",
"items": {
"type": "object",
"properties": {
"hosts": {
"type": "array"
}
},
"required": [
"hosts"
]
}
}
},
"required": [
"annotations",
"enabled",
"hosts",
"ingressClassName",
"tls"
]
}
},
"required": [
"configMapOverrideName",
"global",
"ingress",
"persistentVolume",
"releaseNamespace",
"resources",
"retention",
"service",
"useExistingClusterRoleName"
]
},
"serviceAccounts": {
"type": "object",
"properties": {
"server": {
"type": "object",
"properties": {
"create": {
"type": "boolean"
},
"name": {
"type": "string"
}
},
"required": [
"create",
"name"
]
}
},
"required": [
"server"
]
},
"rbac": {
"type": "object",
"properties": {
"create": {
"type": "boolean"
}
},
"required": [
"create"
]
},
"alertmanager": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
},
"required": [
"enabled"
]
},
"pushgateway": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
},
"required": [
"enabled"
]
},
"kube-state-metrics": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
},
"required": [
"enabled"
]
},
"prometheus-node-exporter": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
},
"required": [
"enabled"
]
},
"prometheus-pushgateway": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
},
"required": [
"enabled"
]
},
"configmapReload": {
"type": "object",
"properties": {
"prometheus": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
}
},
"required": [
"enabled"
]
}
},
"required": [
"prometheus"
]
}
},
"required": [
"alertmanager",
"configmapReload",
"enabled",
"external",
"ingress",
"kube-state-metrics",
"port",
"prometheus-node-exporter",
"prometheus-pushgateway",
"pushgateway",
"rbac",
"scheme",
"server",
"serverLoadMetric",
"serverLoadThreshold",
"serviceAccounts",
"url"
]
},
Expand Down Expand Up @@ -582,13 +849,33 @@
},
"isDefault": {
"type": "boolean"
},
"url": {
"type": "string"
},
"jsonData": {
"type": "object",
"properties": {
"timeInterval": {
"type": "string"
},
"tlsSkipVerify": {
"type": "boolean"
}
},
"required": [
"timeInterval",
"tlsSkipVerify"
]
}
},
"required": [
"access",
"isDefault",
"jsonData",
"name",
"type"
"type",
"url"
]
}
}
Expand Down

0 comments on commit b31957f

Please sign in to comment.