add infra app prometheus
This commit is contained in:
22
infrastructures/prometheus/env/k3s-cluster/service.yaml
vendored
Normal file
22
infrastructures/prometheus/env/k3s-cluster/service.yaml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
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: 9090
|
||||
nodePort: 30999
|
||||
protocol: TCP
|
||||
name: http
|
||||
- name: grafana-port
|
||||
port: 3030
|
||||
nodePort: 30303
|
||||
targetPort: 3000
|
||||
Reference in New Issue
Block a user