generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(vlogs): update to 0.6.0 and set resource limits #309
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- kubernetes/apps/observability/grafana/app Kustomization: flux-system/grafana HelmRelease: observability/grafana
+++ kubernetes/apps/observability/grafana/app Kustomization: flux-system/grafana HelmRelease: observability/grafana
@@ -239,13 +239,13 @@
name: VictoriaMetrics
type: victoriametrics-datasource
url: http://vmsingle-stack.observability.svc:8429
- access: proxy
name: VictoriaLogs
type: victorialogs-datasource
- url: http://victoria-logs-victoria-logs-single-server.observability:9428
+ url: http://victoria-logs.observability:9428
- access: proxy
jsonData:
implementation: prometheus
name: Alertmanager
type: alertmanager
uid: alertmanager
--- kubernetes/apps/observability/vector-aggregator/app Kustomization: flux-system/vector-aggregator ConfigMap: observability/vector-aggregator-configmap
+++ kubernetes/apps/observability/vector-aggregator/app Kustomization: flux-system/vector-aggregator ConfigMap: observability/vector-aggregator-configmap
@@ -31,13 +31,13 @@
type: prometheus_exporter
inputs: [internal_metrics]
address: 0.0.0.0:9090
victorialogs:
type: elasticsearch
inputs: [kubernetes_remap]
- endpoints: [http://victoria-logs-victoria-logs-single-server.observability:9428/insert/elasticsearch/]
+ endpoints: [http://victoria-logs.observability:9428/insert/elasticsearch/]
mode: bulk
api_version: v8
healthcheck:
enabled: false
query:
_msg_field: message
--- kubernetes/apps/observability/victorialogs/app Kustomization: flux-system/victoria-logs HelmRelease: observability/victoria-logs
+++ kubernetes/apps/observability/victorialogs/app Kustomization: flux-system/victoria-logs HelmRelease: observability/victoria-logs
@@ -13,13 +13,13 @@
spec:
chart: victoria-logs-single
sourceRef:
kind: HelmRepository
name: victoriametrics
namespace: flux-system
- version: 0.5.4
+ version: 0.6.0
driftDetection:
mode: enabled
install:
crds: CreateReplace
remediation:
retries: 3
@@ -28,12 +28,16 @@
cleanupOnFail: true
crds: CreateReplace
remediation:
retries: 3
strategy: rollback
values:
+ global:
+ victoriaLogs:
+ server:
+ fullnameOverride: victoria-logs
server:
ingress:
annotations:
nginx.ingress.kubernetes.io/auth-response-headers: x-auth-request-email
nginx.ingress.kubernetes.io/auth-signin: https://oauth2-proxy...PLACEHOLDER../oauth2/start?rd=$scheme://$best_http_host$request_uri
nginx.ingress.kubernetes.io/auth-url: https://oauth2-proxy...PLACEHOLDER../oauth2/auth
@@ -44,9 +48,13 @@
port: http
ingressClassName: internal
persistentVolume:
enabled: true
size: 10Gi
storageClass: openebs-hostpath
+ resources:
+ limits:
+ cpu: 200m
+ memory: 300Mi
serviceMonitor:
enabled: true
|
--- HelmRelease: observability/victoria-logs Service: observability/victoria-logs-victoria-logs-single-server
+++ HelmRelease: observability/victoria-logs Service: observability/victoria-logs-victoria-logs-single-server
@@ -1,23 +0,0 @@
----
-apiVersion: v1
-kind: Service
-metadata:
- namespace: observability
- labels:
- app: server
- app.kubernetes.io/name: victoria-logs-single
- app.kubernetes.io/instance: victoria-logs
- app.kubernetes.io/managed-by: Helm
- name: victoria-logs-victoria-logs-single-server
-spec:
- clusterIP: None
- ports:
- - name: http
- port: 9428
- protocol: TCP
- targetPort: http
- selector:
- app: server
- app.kubernetes.io/name: victoria-logs-single
- app.kubernetes.io/instance: victoria-logs
-
--- HelmRelease: observability/victoria-logs StatefulSet: observability/victoria-logs-victoria-logs-single-server
+++ HelmRelease: observability/victoria-logs StatefulSet: observability/victoria-logs-victoria-logs-single-server
@@ -1,88 +0,0 @@
----
-apiVersion: apps/v1
-kind: StatefulSet
-metadata:
- namespace: observability
- labels:
- app: server
- app.kubernetes.io/name: victoria-logs-single
- app.kubernetes.io/instance: victoria-logs
- app.kubernetes.io/managed-by: Helm
- name: victoria-logs-victoria-logs-single-server
-spec:
- serviceName: victoria-logs-victoria-logs-single-server
- selector:
- matchLabels:
- app: server
- app.kubernetes.io/name: victoria-logs-single
- app.kubernetes.io/instance: victoria-logs
- replicas: 1
- podManagementPolicy: OrderedReady
- template:
- metadata:
- labels:
- app: server
- app.kubernetes.io/name: victoria-logs-single
- app.kubernetes.io/instance: victoria-logs
- app.kubernetes.io/managed-by: Helm
- spec:
- containers:
- - name: victoria-logs-single-server
- securityContext:
- allowPrivilegeEscalation: false
- capabilities:
- drop:
- - ALL
- readOnlyRootFilesystem: true
- image: victoriametrics/victoria-logs:v0.28.0-victorialogs
- imagePullPolicy: IfNotPresent
- args:
- - --retentionPeriod=1
- - --storageDataPath=/storage
- - --envflag.enable=true
- - --envflag.prefix=VM_
- - --loggerFormat=json
- ports:
- - name: http
- containerPort: 9428
- livenessProbe:
- failureThreshold: 10
- httpGet:
- path: /health
- port: 9428
- scheme: HTTP
- initialDelaySeconds: 30
- periodSeconds: 30
- timeoutSeconds: 5
- readinessProbe:
- failureThreshold: 3
- httpGet:
- path: /health
- port: http
- initialDelaySeconds: 5
- periodSeconds: 15
- timeoutSeconds: 5
- resources: {}
- volumeMounts:
- - name: server-volume
- mountPath: /storage
- subPath: null
- securityContext:
- fsGroup: 2000
- runAsNonRoot: true
- runAsUser: 1000
- terminationGracePeriodSeconds: 60
- volumes: null
- volumeClaimTemplates:
- - apiVersion: v1
- kind: PersistentVolumeClaim
- metadata:
- name: server-volume
- spec:
- accessModes:
- - ReadWriteOnce
- resources:
- requests:
- storage: 10Gi
- storageClassName: openebs-hostpath
-
--- HelmRelease: observability/victoria-logs Ingress: observability/victoria-logs-victoria-logs-single-server
+++ HelmRelease: observability/victoria-logs Ingress: observability/victoria-logs-victoria-logs-single-server
@@ -1,29 +0,0 @@
----
-apiVersion: networking.k8s.io/v1
-kind: Ingress
-metadata:
- annotations:
- nginx.ingress.kubernetes.io/auth-response-headers: x-auth-request-email
- nginx.ingress.kubernetes.io/auth-signin: https://oauth2-proxy...PLACEHOLDER../oauth2/start?rd=$scheme://$best_http_host$request_uri
- nginx.ingress.kubernetes.io/auth-url: https://oauth2-proxy...PLACEHOLDER../oauth2/auth
- labels:
- app: server
- app.kubernetes.io/name: victoria-logs-single
- app.kubernetes.io/instance: victoria-logs
- app.kubernetes.io/managed-by: Helm
- name: victoria-logs-victoria-logs-single-server
- namespace: observability
-spec:
- ingressClassName: internal
- rules:
- - host: val...PLACEHOLDER..
- http:
- paths:
- - path: /
- pathType: Prefix
- backend:
- service:
- name: victoria-logs-victoria-logs-single-server
- port:
- number: 9428
-
--- HelmRelease: observability/victoria-logs ServiceMonitor: observability/victoria-logs-victoria-logs-single-server
+++ HelmRelease: observability/victoria-logs ServiceMonitor: observability/victoria-logs-victoria-logs-single-server
@@ -1,22 +0,0 @@
----
-apiVersion: monitoring.coreos.com/v1
-kind: ServiceMonitor
-metadata:
- labels:
- app: server
- app.kubernetes.io/name: victoria-logs-single
- app.kubernetes.io/instance: victoria-logs
- app.kubernetes.io/managed-by: Helm
- name: victoria-logs-victoria-logs-single-server
-spec:
- namespaceSelector:
- matchNames:
- - observability
- selector:
- matchLabels:
- app: server
- app.kubernetes.io/name: victoria-logs-single
- app.kubernetes.io/instance: victoria-logs
- endpoints:
- - port: http
-
--- HelmRelease: observability/victoria-logs Service: observability/victoria-logs
+++ HelmRelease: observability/victoria-logs Service: observability/victoria-logs
@@ -0,0 +1,24 @@
+---
+apiVersion: v1
+kind: Service
+metadata:
+ namespace: observability
+ labels:
+ app: server
+ app.kubernetes.io/name: victoria-logs-single
+ app.kubernetes.io/instance: victoria-logs
+ app.kubernetes.io/managed-by: Helm
+ name: victoria-logs
+spec:
+ clusterIP: None
+ type: ClusterIP
+ ports:
+ - name: http
+ port: 9428
+ protocol: TCP
+ targetPort: http
+ selector:
+ app: server
+ app.kubernetes.io/name: victoria-logs-single
+ app.kubernetes.io/instance: victoria-logs
+
--- HelmRelease: observability/victoria-logs StatefulSet: observability/victoria-logs
+++ HelmRelease: observability/victoria-logs StatefulSet: observability/victoria-logs
@@ -0,0 +1,90 @@
+---
+apiVersion: apps/v1
+kind: StatefulSet
+metadata:
+ name: victoria-logs
+ namespace: observability
+ labels:
+ app: server
+ app.kubernetes.io/name: victoria-logs-single
+ app.kubernetes.io/instance: victoria-logs
+ app.kubernetes.io/managed-by: Helm
+spec:
+ serviceName: victoria-logs
+ selector:
+ matchLabels:
+ app: server
+ app.kubernetes.io/name: victoria-logs-single
+ app.kubernetes.io/instance: victoria-logs
+ replicas: 1
+ podManagementPolicy: OrderedReady
+ template:
+ metadata:
+ labels:
+ app: server
+ app.kubernetes.io/name: victoria-logs-single
+ app.kubernetes.io/instance: victoria-logs
+ app.kubernetes.io/managed-by: Helm
+ spec:
+ containers:
+ - name: vlogs
+ securityContext:
+ allowPrivilegeEscalation: false
+ capabilities:
+ drop:
+ - ALL
+ readOnlyRootFilesystem: true
+ image: victoriametrics/victoria-logs:v0.28.0-victorialogs
+ imagePullPolicy: IfNotPresent
+ args:
+ - --retentionPeriod=1
+ - --storageDataPath=/storage
+ - --envflag.enable=true
+ - --envflag.prefix=VM_
+ - --loggerFormat=json
+ ports:
+ - name: http
+ containerPort: 9428
+ readinessProbe:
+ failureThreshold: 3
+ httpGet:
+ path: /health
+ port: http
+ scheme: HTTP
+ initialDelaySeconds: 5
+ periodSeconds: 15
+ timeoutSeconds: 5
+ livenessProbe:
+ failureThreshold: 10
+ initialDelaySeconds: 30
+ periodSeconds: 30
+ tcpSocket:
+ port: http
+ timeoutSeconds: 5
+ resources:
+ limits:
+ cpu: 200m
+ memory: 300Mi
+ volumeMounts:
+ - name: server-volume
+ mountPath: /storage
+ subPath: null
+ securityContext:
+ fsGroup: 2000
+ runAsNonRoot: true
+ runAsUser: 1000
+ terminationGracePeriodSeconds: 60
+ volumes: null
+ volumeClaimTemplates:
+ - apiVersion: v1
+ kind: PersistentVolumeClaim
+ metadata:
+ name: server-volume
+ spec:
+ accessModes:
+ - ReadWriteOnce
+ resources:
+ requests:
+ storage: 10Gi
+ storageClassName: openebs-hostpath
+
--- HelmRelease: observability/victoria-logs Ingress: observability/victoria-logs
+++ HelmRelease: observability/victoria-logs Ingress: observability/victoria-logs
@@ -0,0 +1,29 @@
+---
+apiVersion: networking.k8s.io/v1
+kind: Ingress
+metadata:
+ annotations:
+ nginx.ingress.kubernetes.io/auth-response-headers: x-auth-request-email
+ nginx.ingress.kubernetes.io/auth-signin: https://oauth2-proxy...PLACEHOLDER../oauth2/start?rd=$scheme://$best_http_host$request_uri
+ nginx.ingress.kubernetes.io/auth-url: https://oauth2-proxy...PLACEHOLDER../oauth2/auth
+ labels:
+ app: server
+ app.kubernetes.io/name: victoria-logs-single
+ app.kubernetes.io/instance: victoria-logs
+ app.kubernetes.io/managed-by: Helm
+ name: victoria-logs
+ namespace: observability
+spec:
+ ingressClassName: internal
+ rules:
+ - host: val...PLACEHOLDER..
+ http:
+ paths:
+ - path: /
+ pathType: Prefix
+ backend:
+ service:
+ name: victoria-logs
+ port:
+ name: http
+
--- HelmRelease: observability/victoria-logs ServiceMonitor: observability/victoria-logs
+++ HelmRelease: observability/victoria-logs ServiceMonitor: observability/victoria-logs
@@ -0,0 +1,22 @@
+---
+apiVersion: monitoring.coreos.com/v1
+kind: ServiceMonitor
+metadata:
+ labels:
+ app: server
+ app.kubernetes.io/name: victoria-logs-single
+ app.kubernetes.io/instance: victoria-logs
+ app.kubernetes.io/managed-by: Helm
+ name: victoria-logs
+spec:
+ namespaceSelector:
+ matchNames:
+ - observability
+ selector:
+ matchLabels:
+ app: server
+ app.kubernetes.io/name: victoria-logs-single
+ app.kubernetes.io/instance: victoria-logs
+ endpoints:
+ - port: http
+
--- HelmRelease: observability/grafana ConfigMap: observability/grafana
+++ HelmRelease: observability/grafana ConfigMap: observability/grafana
@@ -56,13 +56,13 @@
name: VictoriaMetrics
type: victoriametrics-datasource
url: http://vmsingle-stack.observability.svc:8429
- access: proxy
name: VictoriaLogs
type: victorialogs-datasource
- url: http://victoria-logs-victoria-logs-single-server.observability:9428
+ url: http://victoria-logs.observability:9428
- access: proxy
jsonData:
implementation: prometheus
name: Alertmanager
type: alertmanager
uid: alertmanager
--- HelmRelease: observability/grafana Deployment: observability/grafana
+++ HelmRelease: observability/grafana Deployment: observability/grafana
@@ -22,13 +22,13 @@
labels:
app.kubernetes.io/name: grafana
app.kubernetes.io/instance: grafana
annotations:
checksum/dashboards-json-config: 323707a88bb7cc0dcc608d4bff3a0f3ff48479d8dd819198306026a56b4f985b
checksum/sc-dashboard-provider-config: c942752180ddff51a3ab63b7d256cf3d856d90757b6f804cbc420562989d5a84
- checksum/secret: 7cac78fb9a7c7a3115c304e5cdd9943221278add8629b65d5143a06b576e429d
+ checksum/secret: aea30ea30f0e41fe59d98412ed6f4fe6abb4e26e5cf1890ac3855bb187cea6a2
kubectl.kubernetes.io/default-container: grafana
spec:
serviceAccountName: grafana
automountServiceAccountToken: true
securityContext:
fsGroup: 472 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.