add infra app prometheus
This commit is contained in:
16
kubernetes/infrastructure/prometheus/app/service.yaml
Normal file
16
kubernetes/infrastructure/prometheus/app/service.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: prometheus
|
||||
namespace: prometheus
|
||||
annotations:
|
||||
prometheus.io/scrape: 'true'
|
||||
prometheus.io/port: '9999'
|
||||
spec:
|
||||
selector:
|
||||
app: prometheus
|
||||
type: NodePort
|
||||
ports:
|
||||
- port: 9999
|
||||
targetPort: 9999
|
||||
nodePort: 30999
|
||||
Reference in New Issue
Block a user