Skip to content

Commit

Permalink
add prometheus options
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudymax committed Feb 10, 2024
1 parent e73aa82 commit 6ada293
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/kubevirt-manager/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: kubevirt-manager
description: Install the Kubevirt Manager UI

type: application
version: 0.1.2
version: 0.1.3
appVersion: 1.3.1

maintainers:
Expand Down
3 changes: 2 additions & 1 deletion charts/kubevirt-manager/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# kubevirt-manager

![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.1](https://img.shields.io/badge/AppVersion-1.3.1-informational?style=flat-square)
![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.3.1](https://img.shields.io/badge/AppVersion-1.3.1-informational?style=flat-square)

Install the Kubevirt Manager UI

Expand All @@ -18,6 +18,7 @@ Install the Kubevirt Manager UI
| ingress.className | string | `"nginx"` | |
| ingress.enabled | bool | `false` | |
| ingress.hostname | string | `"kubevirt.domain.com"` | |
| prometheusEnabled | bool | `false` | |
| replicaCount | int | `1` | |
| service.name | string | `"http"` | |
| service.port | int | `8080` | |
Expand Down
25 changes: 25 additions & 0 deletions charts/kubevirt-manager/templates/prometheus-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{{ if eq .Values.prometheusEnabled true }}
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-config
namespace: kubevirt-manager
labels:
app: kubevirt-manager
kubevirt-manager.io/version: 1.3.1
kubevirt-manager.io/managed: "true"
data:
prometheus.conf: |
location /api {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Authorization "";
proxy_pass_request_body on;
proxy_pass_request_headers on;
client_max_body_size 5g;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://prometheus-service.prometheus-namespace.svc:9090;
}
{{- end }}
2 changes: 2 additions & 0 deletions charts/kubevirt-manager/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ service:
protocol: TCP
name: http

prometheusEnabled: false

ingress:
enabled: false
className: "nginx"
Expand Down

0 comments on commit 6ada293

Please sign in to comment.