Merge pull request #340 from 3dwardch3ng/infra/prometheus

use ClusterIP and ingress to handle the incoming requests
This commit is contained in:
2024-06-26 16:24:32 +10:00
committed by GitHub
2 changed files with 4 additions and 5 deletions

View File

@@ -18,7 +18,7 @@ spec:
service:
name: prometheus
port:
number: 30999
number: 9999
- host: "prometheus.cluster.local"
http:
paths:
@@ -28,4 +28,4 @@ spec:
service:
name: prometheus
port:
number: 30999
number: 9999

View File

@@ -9,8 +9,7 @@ metadata:
spec:
selector:
app: prometheus
type: NodePort
type: ClusterIP
ports:
- port: 9999
targetPort: 9999
nodePort: 30999