use ClusterIP and ingress to handle the incoming requests
This commit is contained in:
@@ -18,7 +18,7 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
port:
|
port:
|
||||||
number: 30999
|
number: 9999
|
||||||
- host: "prometheus.cluster.local"
|
- host: "prometheus.cluster.local"
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
@@ -28,4 +28,4 @@ spec:
|
|||||||
service:
|
service:
|
||||||
name: prometheus
|
name: prometheus
|
||||||
port:
|
port:
|
||||||
number: 30999
|
number: 9999
|
||||||
@@ -9,8 +9,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: prometheus
|
app: prometheus
|
||||||
type: NodePort
|
type: ClusterIP
|
||||||
ports:
|
ports:
|
||||||
- port: 9999
|
- port: 9999
|
||||||
targetPort: 9999
|
targetPort: 9999
|
||||||
nodePort: 30999
|
|
||||||
Reference in New Issue
Block a user