Browse Source

test

master
刘技 5 years ago
parent
commit
74e3e9f442
1 changed files with 5 additions and 1 deletions
  1. 6
      k8s.yaml

6
k8s.yaml

@ -6,6 +6,10 @@ metadata:
type: backend type: backend
name: backendmonitor #jenkins-backend-demo name: backendmonitor #jenkins-backend-demo
namespace: backend namespace: backend
annotations:
prometheus.io/scrape: 'true'
prometheus.io/path: '/actuator/prometheus' #'/metrics'
prometheus.io/port: '30011' #'8080'
spec: spec:
selector: selector:
matchLabels: matchLabels:
@ -38,7 +42,7 @@ metadata:
annotations: annotations:
prometheus.io/scrape: 'true' prometheus.io/scrape: 'true'
prometheus.io/path: '/actuator/prometheus' #'/metrics' prometheus.io/path: '/actuator/prometheus' #'/metrics'
prometheus.io/port: '30011' #'8080'
prometheus.io/port: '8080' #'8080' 30011
spec: spec:
selector: selector:
app: jenkins-backend-demo app: jenkins-backend-demo

Loading…
Cancel
Save