Skip to content

Commit

Permalink
helm: add victoria-metrics-operator chart
Browse files Browse the repository at this point in the history
Signed-off-by: Viktor Login <batazor111@gmail.com>
  • Loading branch information
batazor committed Oct 24, 2024
1 parent f7533d9 commit e2a174e
Show file tree
Hide file tree
Showing 10 changed files with 301 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: victoria-metrics-operator
repository: https://victoriametrics.github.io/helm-charts/
version: 0.36.0
digest: sha256:f57a612c56a1f6a859a720c77aa3302984a9f84c194df9947f1e8b05992ad75e
generated: "2024-10-25T00:59:21.145588+03:00"
23 changes: 23 additions & 0 deletions ops/Helm/addons/observability/victoria-metrics-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v2
appVersion: "1.0.0"
name: victoria-metrics-operator
version: 0.1.0
kubeVersion: ">= 1.30.0 || >= v1.30.0-0"
keywords:
- victoria
- operator
- monitoring
maintainers:
- email: batazor111@gmail.com
name: batazor
url: batazor.ru
engine: gotpl
type: application
deprecated: false
dependencies:
- name: victoria-metrics-operator
version: 0.36.0
repository: https://victoriametrics.github.io/helm-charts/
condition: victoria-metrics-operator.enabled
tags:
- monitoring
187 changes: 187 additions & 0 deletions ops/Helm/addons/observability/victoria-metrics-operator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
# prometheus-operator

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

## Maintainers

| Name | Email | Url |
| ---- | ------ | --- |
| batazor | <batazor111@gmail.com> | <batazor.ru> |

## Requirements

Kubernetes: `>= 1.30.0 || >= v1.30.0-0`

| Repository | Name | Version |
|------------|------|---------|
| https://prometheus-community.github.io/helm-charts | kube-prometheus-stack | 65.3.1 |

## Values

<table height="400px" >
<thead>
<th>Key</th>
<th>Type</th>
<th>Default</th>
<th>Description</th>
</thead>
<tbody>
<tr>
<td id="kube-prometheus-stack--coreDns--enabled"><a href="./values.yaml#L22">kube-prometheus-stack.coreDns.enabled</a></td>
<td>
bool
</td>
<td>
<div style="max-width: 300px;">
<pre lang="json">
true
</pre>
</div>
</td>
<td></td>
</tr>
<tr>
<td id="kube-prometheus-stack--enabled"><a href="./values.yaml#L6">kube-prometheus-stack.enabled</a></td>
<td>
bool
</td>
<td>
<div style="max-width: 300px;">
<pre lang="json">
true
</pre>
</div>
</td>
<td></td>
</tr>
<tr>
<td id="kube-prometheus-stack--fullnameOverride"><a href="./values.yaml#L8">kube-prometheus-stack.fullnameOverride</a></td>
<td>
string
</td>
<td>
<div style="max-width: 300px;">
<pre lang="json">
"prometheus"
</pre>
</div>
</td>
<td></td>
</tr>
<tr>
<td id="kube-prometheus-stack--grafana--enabled"><a href="./values.yaml#L11">kube-prometheus-stack.grafana.enabled</a></td>
<td>
bool
</td>
<td>
<div style="max-width: 300px;">
<pre lang="json">
false
</pre>
</div>
</td>
<td></td>
</tr>
<tr>
<td id="kube-prometheus-stack--grafana--sidecar--dashboards--enableNewTablePanelSyntax"><a href="./values.yaml#L15">kube-prometheus-stack.grafana.sidecar.dashboards.enableNewTablePanelSyntax</a></td>
<td>
bool
</td>
<td>
<div style="max-width: 300px;">
<pre lang="json">
true
</pre>
</div>
</td>
<td></td>
</tr>
<tr>
<td id="kube-prometheus-stack--kubeDns--enabled"><a href="./values.yaml#L18">kube-prometheus-stack.kubeDns.enabled</a></td>
<td>
bool
</td>
<td>
<div style="max-width: 300px;">
<pre lang="json">
false
</pre>
</div>
</td>
<td></td>
</tr>
<tr>
<td id="kube-prometheus-stack--prometheusOperator--resources--limits--cpu"><a href="./values.yaml#L29">kube-prometheus-stack.prometheusOperator.resources.limits.cpu</a></td>
<td>
int
</td>
<td>
<div style="max-width: 300px;">
<pre lang="json">
1
</pre>
</div>
</td>
<td></td>
</tr>
<tr>
<td id="kube-prometheus-stack--prometheusOperator--resources--limits--memory"><a href="./values.yaml#L30">kube-prometheus-stack.prometheusOperator.resources.limits.memory</a></td>
<td>
string
</td>
<td>
<div style="max-width: 300px;">
<pre lang="json">
"512Mi"
</pre>
</div>
</td>
<td></td>
</tr>
<tr>
<td id="kube-prometheus-stack--prometheusOperator--resources--requests--cpu"><a href="./values.yaml#L32">kube-prometheus-stack.prometheusOperator.resources.requests.cpu</a></td>
<td>
string
</td>
<td>
<div style="max-width: 300px;">
<pre lang="json">
"30m"
</pre>
</div>
</td>
<td></td>
</tr>
<tr>
<td id="kube-prometheus-stack--prometheusOperator--resources--requests--memory"><a href="./values.yaml#L33">kube-prometheus-stack.prometheusOperator.resources.requests.memory</a></td>
<td>
string
</td>
<td>
<div style="max-width: 300px;">
<pre lang="json">
"50Mi"
</pre>
</div>
</td>
<td></td>
</tr>
<tr>
<td id="kube-prometheus-stack--prometheusOperator--secretFieldSelector"><a href="./values.yaml#L25">kube-prometheus-stack.prometheusOperator.secretFieldSelector</a></td>
<td>
string
</td>
<td>
<div style="max-width: 300px;">
<pre lang="json">
"type!=kubernetes.io/dockercfg,type!=kubernetes.io/service-account-token,type!=helm.sh/release.v1"
</pre>
</div>
</td>
<td></td>
</tr>
</tbody>
</table>

----------------------------------------------
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
CHART NAME: {{ .Chart.Name }}
CHART VERSION: {{ .Chart.Version }}
APP VERSION: {{ .Chart.AppVersion }}

** Please be patient while the chart is being deployed **
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: LimitRange
metadata:
name: mem-limit-range
spec:
limits:
- default:
memory: 2Gi
cpu: 1500m
defaultRequest:
memory: 64Mi
cpu: 100m
type: Container
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMAuth
metadata:
name: router-main
spec:
podMetadata:
labels:
component: vmauth
userSelector: {}
userNamespaceSelector: {}
replicaCount: 2
resources:
requests:
cpu: "250m"
memory: "350Mi"
limits:
cpu: "500m"
memory: "850Mi"
ingress:
tlsSecretName: vmauth-tls
annotations:
cert-manager.io/cluster-issuer: cert-manager-production
nginx.ingress.kubernetes.io/backend-protocol: HTTP
nginx.ingress.kubernetes.io/enable-owasp-core-rules: "true"
nginx.ingress.kubernetes.io/enable-opentelemetry: "true"
class_name: nginx
tlsHosts:
- vm.shortlink.best
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMServiceScrape
metadata:
name: vmoperator
spec:
selector:
matchLabels:
app.kubernetes.io/instance: vm-operator
app.kubernetes.io/name: victoria-metrics-operator
endpoints:
- port: metrics
{{/* namespaceSelector:*/}}
{{/* matchNames:*/}}
{{/* - vm*/}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: operator.victoriametrics.com/v1beta1
kind: VMUser
metadata:
name: user-1
spec:
bearerToken: Asafs124142
targetRefs:
- crd:
kind: VMAgent
name: base
namespace: vm
paths: ["/targets/api/v1","/targets","/metrics"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Common default values for prometheus-operator.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

victoria-metrics-operator:
enabled: true

env:
- name: VM_PROMETHEUSCONVERTERADDARGOCDIGNOREANNOTATIONS
value: true

serviceMonitor:
enabled: true

0 comments on commit e2a174e

Please sign in to comment.