diff --git a/charts/incubator/kromgo/.helmignore b/charts/incubator/kromgo/.helmignore new file mode 100644 index 00000000000..feb7464da6f --- /dev/null +++ b/charts/incubator/kromgo/.helmignore @@ -0,0 +1,32 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ +# OWNERS file for Kubernetes +OWNERS +# helm-docs templates +*.gotmpl +# docs folder +/docs +# icon +icon.png +icon.webp +icon-small.webp diff --git a/charts/incubator/kromgo/CHANGELOG.md b/charts/incubator/kromgo/CHANGELOG.md new file mode 100644 index 00000000000..f3e8318aa10 --- /dev/null +++ b/charts/incubator/kromgo/CHANGELOG.md @@ -0,0 +1,4 @@ +--- +title: Changelog +pagefind: false +--- diff --git a/charts/incubator/kromgo/Chart.yaml b/charts/incubator/kromgo/Chart.yaml new file mode 100644 index 00000000000..4133cf9c3af --- /dev/null +++ b/charts/incubator/kromgo/Chart.yaml @@ -0,0 +1,42 @@ +annotations: + artifacthub.io/links: |- + - name: support + url: https://discord.com/invite/tVsPTHWTtr + truecharts.org/category: observability + truecharts.org/max_helm_version: "3.17" + truecharts.org/max_kubernetes_version: 1.32.0 + truecharts.org/min_helm_version: "3.14" + truecharts.org/min_kubernetes_version: 1.24.0 + truecharts.org/train: incubator +apiVersion: v2 +appVersion: 0.34.0 +dependencies: + - name: common + version: 28.29.10 + repository: oci://oci.trueforge.org/truecharts + condition: "" + alias: "" + tags: [] + import-values: [] +deprecated: false +description: A simple go project that allows you to expose prometheus metrics "safely" to a public source. +home: https://truecharts.org/charts/incubator/kromgo +icon: https://truecharts.org/img/hotlink-ok/chart-icons/kromgo.webp +keywords: + - kromgo + - metrics + - prometheus + - grafana + - shields.io +kubeVersion: '>=1.24.0-0' +maintainers: + - name: TrueCharts + email: info@truecharts.org + url: https://truecharts.org +name: kromgo +sources: + - https://https://github.com/kashalls/kromgo + - https://github.com/trueforge-org/truecharts/tree/master/charts/incubator/kromgo +type: application +version: 0.0.1 + diff --git a/charts/incubator/kromgo/README.md b/charts/incubator/kromgo/README.md new file mode 100644 index 00000000000..2b8cc49d247 --- /dev/null +++ b/charts/incubator/kromgo/README.md @@ -0,0 +1,3 @@ +--- +title: README +--- diff --git a/charts/incubator/kromgo/icon.webp b/charts/incubator/kromgo/icon.webp new file mode 100644 index 00000000000..5cb40a680f7 Binary files /dev/null and b/charts/incubator/kromgo/icon.webp differ diff --git a/charts/incubator/kromgo/templates/NOTES.txt b/charts/incubator/kromgo/templates/NOTES.txt new file mode 100644 index 00000000000..efcb74cb772 --- /dev/null +++ b/charts/incubator/kromgo/templates/NOTES.txt @@ -0,0 +1 @@ +{{- include "tc.v1.common.lib.chart.notes" $ -}} diff --git a/charts/incubator/kromgo/templates/common.yaml b/charts/incubator/kromgo/templates/common.yaml new file mode 100644 index 00000000000..b51394e00a4 --- /dev/null +++ b/charts/incubator/kromgo/templates/common.yaml @@ -0,0 +1 @@ +{{ include "tc.v1.common.loader.all" . }} diff --git a/charts/incubator/kromgo/values.yaml b/charts/incubator/kromgo/values.yaml new file mode 100644 index 00000000000..da4ca9520f6 --- /dev/null +++ b/charts/incubator/kromgo/values.yaml @@ -0,0 +1,70 @@ +image: + repository: ghcr.io/kashalls/kromgo + tag: v0.7.4@sha256:464dfa398fc0d032cffbd8396a1993f2690917b847f6628159c6d9fe3cba9055 + pullPolicy: IfNotPresent + +# Raw Kromgo configuration +# Replace it with your configuration +# https://github.com/kashalls/kromgo/blob/main/config.yaml.example +kromgo: + badge: + font: Verdana.ttf # Relative to /kromgo - Verdana.ttf is available in the container + size: 12 + metrics: + - name: talos_version + query: node_os_info{ name="Talos"} + label: version_id + title: Talos Version + + - name: kubernetes_version + query: kubernetes_build_info{ service="kubernetes"} + label: git_version + title: Kubernetes Version + +service: + main: + ports: + main: + port: 80 + health: + enabled: true + port: 8080 + +workload: + main: + podSpec: + containers: + main: + env: + PROMETHEUS_URL: "http://prometheus-operated.kube-prometheus-stack.svc.cluster.local:9090" + SERVER_PORT: "{{ $.Values.service.main.ports.main.port }}" + HEALTH_PORT: "{{ $.Values.service.main.ports.health.port }}" + probes: + liveness: + type: http + path: "/healthz" + port: "{{ $.Values.service.main.ports.health.port }}" + readiness: + type: http + path: "/readyz" + port: "{{ $.Values.service.main.ports.health.port }}" + startup: + type: http + path: "/readyz" + port: "{{ $.Values.service.main.ports.health.port }}" + +configmap: + kromgo-configfile: + enabled: true + data: + config.yaml: | + {{- $.Values.kromgo | toYaml | nindent 2 }} + +persistence: + configfile: + enabled: true + type: configmap + readOnly: true + objectName: kromgo-configfile + mountPath: /kromgo/config.yaml + subPath: config.yaml