Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 5s
66 lines
1.2 KiB
YAML
66 lines
1.2 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: mtproxy-classic-metrics
|
|
labels:
|
|
app: mtproxy-classic
|
|
spec:
|
|
clusterIP: None
|
|
selector:
|
|
app: mtproxy-classic
|
|
ports:
|
|
- name: metrics
|
|
port: 9090
|
|
targetPort: metrics
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: mtproxy-tls-metrics
|
|
labels:
|
|
app: mtproxy-tls
|
|
spec:
|
|
clusterIP: None
|
|
selector:
|
|
app: mtproxy-tls
|
|
ports:
|
|
- name: metrics
|
|
port: 9090
|
|
targetPort: metrics
|
|
---
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: mtproxy-classic
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: mtproxy-classic
|
|
endpoints:
|
|
- port: metrics
|
|
path: /metrics
|
|
interval: 30s
|
|
scrapeTimeout: 10s
|
|
relabelings:
|
|
- action: replace
|
|
sourceLabels: [__meta_kubernetes_pod_node_name]
|
|
targetLabel: node
|
|
---
|
|
apiVersion: monitoring.coreos.com/v1
|
|
kind: ServiceMonitor
|
|
metadata:
|
|
name: mtproxy-tls
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: mtproxy-tls
|
|
endpoints:
|
|
- port: metrics
|
|
path: /metrics
|
|
interval: 30s
|
|
scrapeTimeout: 10s
|
|
relabelings:
|
|
- action: replace
|
|
sourceLabels: [__meta_kubernetes_pod_node_name]
|
|
targetLabel: node
|