53 lines
1.5 KiB
YAML
53 lines
1.5 KiB
YAML
apiVersion: operator.victoriametrics.com/v1beta1
|
|
kind: VMPodScrape
|
|
metadata:
|
|
name: minecraft
|
|
namespace: victoriametrics
|
|
labels:
|
|
observability.quorate.internal/scrape: "true"
|
|
spec:
|
|
namespaceSelector:
|
|
matchNames: [minecraft]
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: minecraft
|
|
app.kubernetes.io/instance: skies
|
|
podMetricsEndpoints:
|
|
- port: metrics
|
|
path: /metrics
|
|
interval: 30s
|
|
scrapeTimeout: 10s
|
|
relabelConfigs:
|
|
- targetLabel: application
|
|
replacement: minecraft
|
|
- sourceLabels:
|
|
- __meta_kubernetes_pod_label_app_kubernetes_io_instance
|
|
targetLabel: instance
|
|
- action: labeldrop
|
|
regex: pod
|
|
metricRelabelConfigs:
|
|
- action: labeldrop
|
|
regex: pod
|
|
- action: labeldrop
|
|
regex: (?i)(.*password.*|.*passwd.*|.*secret.*|.*token.*|.*auth.*|.*bearer.*|.*cookie.*|.*dsn.*|.*uri.*|.*url.*|.*cmdline.*|.*command.*|.*args.*|.*env.*)
|
|
---
|
|
apiVersion: cilium.io/v2
|
|
kind: CiliumNetworkPolicy
|
|
metadata:
|
|
name: vmagent-minecraft
|
|
namespace: victoriametrics
|
|
spec:
|
|
endpointSelector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: vmagent
|
|
app.kubernetes.io/instance: main
|
|
egress:
|
|
- toEndpoints:
|
|
- matchLabels:
|
|
k8s:io.kubernetes.pod.namespace: minecraft
|
|
app.kubernetes.io/name: minecraft
|
|
app.kubernetes.io/instance: skies
|
|
toPorts:
|
|
- ports:
|
|
- port: "19565"
|
|
protocol: TCP
|