Skip to content

Commit

Permalink
replace vlogs helmchart by operator
Browse files Browse the repository at this point in the history
  • Loading branch information
kvaps committed Aug 28, 2024
1 parent 0f4d416 commit ba514de
Show file tree
Hide file tree
Showing 73 changed files with 36,227 additions and 23,164 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
apiVersion: grafana.integreatly.org/v1beta1
kind: GrafanaDatasource
metadata:
name: vlog-{{ .name }}
name: vlogs-{{ .name }}
spec:
datasource:
access: proxy
type: victorialogs-datasource
name: vlog-{{ .name }}
url: http://vlog-{{ .name }}-0.vlog-{{ .name }}.{{ $.Release.Namespace }}.svc:9428
name: vlogs-{{ .name }}
url: http://vlogs-{{ .name }}.{{ $.Release.Namespace }}.svc:9428
instanceSelector:
matchLabels:
dashboards: grafana
Expand Down
38 changes: 11 additions & 27 deletions packages/extra/monitoring/templates/vlogs/vlogs-release.yaml
Original file line number Diff line number Diff line change
@@ -1,31 +1,15 @@
{{- range .Values.logsStorages }}
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
apiVersion: operator.victoriametrics.com/v1beta1
kind: VLogs
metadata:
name: vlog-{{ .name }}-system
labels:
app.kubernetes.io/instance: {{ $.Release.Name }}
app.kubernetes.io/managed-by: {{ $.Release.Service }}
name: {{ .name }}
spec:
chart:
spec:
chart: cozy-victoria-logs
reconcileStrategy: Revision
sourceRef:
kind: HelmRepository
name: cozystack-system
namespace: cozy-system
version: '*'
interval: 1m0s
timeout: 5m0s
values:
global:
victoriaLogs:
server:
fullnameOverride: vlog-{{ .name }}
victoria-logs-single:
server:
persistentVolume:
enabled: true
size: 10Gi
storage:
resources:
requests:
storage: {{ .storage }}
storageClassName: {{ .storageClassName }}
accessModes: [ReadWriteOnce]
retentionPeriod: "{{ .retentionPeriod }}"
removePvcAfterDelete: true
{{- end }}
2 changes: 1 addition & 1 deletion packages/extra/monitoring/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ metricsStorages:
##
logsStorages:
- name: generic
retentionPeriod: "1m"
retentionPeriod: "1"
storage: 10Gi
storageClassName: replicated

Expand Down
2 changes: 1 addition & 1 deletion packages/system/monitoring/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ fluent-bit:
[OUTPUT]
Name http
Match kube.*
Host vlog-generic.tenant-root.svc
Host vlogs-generic.tenant-root.svc
port 9428
compress gzip
uri /insert/jsonline?_stream_fields=stream,kubernetes_pod_name,kubernetes_container_name,kubernetes_namespace_name&_msg_field=log&_time_field=date
Expand Down
1 change: 0 additions & 1 deletion packages/system/victoria-logs/.helmignore

This file was deleted.

3 changes: 0 additions & 3 deletions packages/system/victoria-logs/Chart.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions packages/system/victoria-logs/Makefile

This file was deleted.

225 changes: 0 additions & 225 deletions packages/system/victoria-logs/charts/victoria-logs-single/CHANGELOG.md

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit ba514de

Please sign in to comment.