mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-01 01:29:31 +08:00
chore: use PodMonitoring in charts instead (#12571)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Refactor** - Updated monitoring configuration to use a different resource type with simplified naming and label selectors for Kubernetes manifests. - **Chores** - Removed Google Cloud Platform–specific monitoring configuration files from multiple components. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
@@ -1,12 +0,0 @@
|
|||||||
{{- if eq .Values.global.deployment.platform "gcp" -}}
|
|
||||||
apiVersion: monitoring.googleapis.com/v1
|
|
||||||
kind: ClusterPodMonitoring
|
|
||||||
metadata:
|
|
||||||
name: "{{ include "graphql.fullname" . }}"
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
{{- include "graphql.selectorLabels" . | nindent 4 }}
|
|
||||||
endpoints:
|
|
||||||
- port: 9464
|
|
||||||
interval: 30s
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{{- if eq .Values.global.deployment.platform "gcp" -}}
|
|
||||||
apiVersion: monitoring.googleapis.com/v1
|
|
||||||
kind: ClusterPodMonitoring
|
|
||||||
metadata:
|
|
||||||
name: "{{ include "renderer.fullname" . }}"
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
{{- include "renderer.selectorLabels" . | nindent 4 }}
|
|
||||||
endpoints:
|
|
||||||
- port: 9464
|
|
||||||
interval: 30s
|
|
||||||
{{- end }}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
{{- if eq .Values.global.deployment.platform "gcp" -}}
|
|
||||||
apiVersion: monitoring.googleapis.com/v1
|
|
||||||
kind: ClusterPodMonitoring
|
|
||||||
metadata:
|
|
||||||
name: "{{ include "sync.fullname" . }}"
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
{{- include "sync.selectorLabels" . | nindent 4 }}
|
|
||||||
endpoints:
|
|
||||||
- port: 9464
|
|
||||||
interval: 30s
|
|
||||||
{{- end }}
|
|
||||||
+4
-3
@@ -1,11 +1,12 @@
|
|||||||
{{- if eq .Values.global.deployment.platform "gcp" -}}
|
{{- if eq .Values.global.deployment.platform "gcp" -}}
|
||||||
apiVersion: monitoring.googleapis.com/v1
|
apiVersion: monitoring.googleapis.com/v1
|
||||||
kind: ClusterPodMonitoring
|
kind: PodMonitoring
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ include "doc.fullname" . }}"
|
name: "{{ .Release.Name }}-monitoring"
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
{{- include "doc.selectorLabels" . | nindent 4 }}
|
matchLabels:
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
endpoints:
|
endpoints:
|
||||||
- port: 9464
|
- port: 9464
|
||||||
interval: 30s
|
interval: 30s
|
||||||
Reference in New Issue
Block a user